Questions tagged as 'php'

3
answers

Warning: mysql_fetch_row () expects parameter 1 to be resource, boolean given

Could someone tell me why did you mark this error in my code?    Warning: mysql_fetch_row () expects parameter 1 to be resource, boolean given in C: \ xampp \ htdocs \ dashboard \ PROJECTFINALLP4 \ registerbd.php on line 61 * I try to mak...
asked by 20.07.2017 / 01:53
3
answers

query with ranges of dates and values of a month

In my app I have a table like this: INACTIVITY: id user_id start end comment 265 2 29-04-2017 05-05-2017 Vacaciones 356 2 07-04-2017 10-04-2017 Baja Enfermedad 455...
asked by 27.06.2017 / 13:55
1
answer

I do not believe the PHP session

I have a problem with this code .. I receive the cookies correctly but when I want to assign those values to the sessions I do not believe them and I do not know why, any ideas ?? if (isset($_COOKIE["idusuario"]) && isset($_COOKIE["mar...
asked by 07.05.2017 / 19:47
2
answers

PHP Artisan migrate: Class Schema not found

I am studying Laravel 5.4 and I have the following problem: When performing a migration, in the console of Windows I execute the command: php artisan migrate When executing this command, it shows me the following error:...
asked by 04.05.2017 / 23:40
1
answer

How to group data from a related table in Laravel?

I want to group the records that have more than one related record. Example: I have a table called assignments and another table called sales, so an assignment can have a lot of sales. In the table assignments I have 2 records and in sales I...
asked by 08.03.2017 / 14:38
1
answer

problem uploading file with ftp_put ()

when using function ftp_put() of php to upload file to an ftp, it actually uploads the file, but it arrives without weight, that is 0 B, I attach the code that I am using (it is not problem of permissions of the folder where I'm sending i...
asked by 03.03.2017 / 14:22
1
answer

Problems with connection to ORACLE with PDO and PHP

A moment ago post the following question! Problems with PDO and PHP Once the code in the connection file has been corrected, the following error appears!    could not find driver       Fatal error: Uncaught Error: Call to a member funct...
asked by 27.04.2017 / 20:28
1
answer

Uncaught TypeError: Can not read property 'length' of undefined [json, ajax and DataTables]

I can not show the data in my table. With the following index I send the data of my table by json: public function index(Request $request) { if ($request->ajax()) { $modelos = Modelos::all(); return response()->...
asked by 27.04.2017 / 23:22
1
answer

how to create a switch case within a path in DATATABLES?

I'm painting the data brought from the database in datatables , the problem is that I need to validate a data to be able to paint a badge in the GUI , and I look for the way to do with a switch since if I use a if...
asked by 26.04.2017 / 16:21
1
answer

Show array in order

By php I have a word list, which I want to appear one by one when I click on JS. Right now with the code that I have I show the words one by one but messy. What I want to do is show them in an orderly way as I have written them in the code....
asked by 06.02.2017 / 12:33