Questions tagged as 'php'

2
answers

Validate registered user

I am trying with Ajax to show if the user exists in the database so as not to have two registered users with the same name. What I do is through the event change of jQuery show with a span if the user exists or not in...
asked by 27.03.2018 / 20:56
1
answer

Create a File Uploader with a progress bar and it does not work

I have a problem with my code, the problem is in the JavaScript but I do not know what it is, I also attach the html and css to make it look better. The idea is to make a file uploader with a progress bar to store files, I have it uploaded to th...
asked by 01.03.2018 / 20:23
2
answers

Doubt over hash, md5 and unencrypted

I had a doubt. I have a login where I have a password with hash and the login is valid as such. If I enter a password directly without encrypting in the database or I do an update of the password with md5, would there be any kind of problem i...
asked by 19.08.2018 / 16:21
2
answers

Problems opening a file from PHP in a new window

I have a file in a server path and I would like to send it to the browser. I tried something like this: <?php $filepath = '/var/tmp/apiRest/download/'.$rst; if(file_exists($filepath)) { header('Content-Description: File Transfer...
asked by 22.08.2018 / 17:31
1
answer

Run MySQL query on onChange

I have a select that shows the departments: <select name="dpto" id="dpto"> <option value="3">ATLANTICO</option> <option value="12">CESAR</option> </select> What I need is that when selecting...
asked by 21.08.2018 / 21:21
2
answers

Error of undefined variables

I'm trying to insert some data into the database, but I get an indefinite variable error in the index, I'll leave the code in case you see any error: File add: <?php session_start(); $equipo = $_POST['equipo']; $idequipo = $_POST['idequ...
asked by 21.08.2018 / 14:33
0
answers

enable PDO module mysql and php in godaddy

I have a windows classic hosting with iis and php 5.3 in godaddy there my website connects to a mysql database this is my connection <?php $dsn = 'mysql:host=dbgts.db.2365702.3ed.hostedresource.net;dbname=dbase'; $username = 'user'; $pa...
asked by 14.09.2017 / 17:55
0
answers

Illegal string offset in laravel [closed]

I have this error:    ErrorException in PuntuacionesCtrl.php line 70:   Illegal string offset 'activity_id' and I do not know how to solve it, this is my code, the first line is 70 where I get the error: $actividad_id = $request->...
asked by 19.09.2017 / 23:09
1
answer

PHP - Browse large CSV file with function

I've been looking for how to find a value on one line and return another value from another column on the same line in a CSV file. This is my function and works perfectly on small files: function find_user($filename, $id) { $f = fopen($...
asked by 28.08.2017 / 06:03
0
answers

Does not show dates from PHP when consulting Oracle

I have an Oracle database that I can access through PHP and visualize information about it, through SQL Developer I have a statement that executes and returns these results: But executing the same sentence in PHP: $tsql= "select orden...
asked by 04.09.2018 / 15:18