Questions tagged as 'php'

1
answer

Mysql LIKE does not filter PHP data

I have a problem in PHP when sending data to filter if I do it with the "=" no problem brings me the records but if I try to do it with LIKE, it does not return anything. It's the tm_profesor_dni. public function buscar_profesor_dni($dni){...
asked by 26.03.2018 / 20:52
2
answers

copy table record to another ajax and php

I have the following function which receives an id as parameter: function terminar_tramite(ids) { var ID = ids; console.log(ID); $.ajax({ url: "lib/controladores/tramite_terminado.php", type: 'POST', data:...
asked by 10.04.2018 / 20:44
2
answers

Validation of date by JQuery

Hello good morning I have the next function that validates dates without the "/" example 010218 that would be 01/02/2018 , also if only 4 characters come I add it through php the year. Obviously the date armo by .substr . The...
asked by 13.04.2018 / 12:32
2
answers

Error connecting: access denied for the user '' @ 'localhost'

I am receiving data from some variables by means of url and I want to insert those same values into a MySQL database, but I'm getting an error:    Warning: mysql_query (): Access denied for user '' @ 'localhost' (using password: NO) in C: \ x...
asked by 02.04.2018 / 01:16
1
answer

How to create a report in excel in php without the use of libraries

How do I export a report in excel with its rows and columns from php without the use of external libraries can it be done?     
asked by 13.04.2018 / 23:58
3
answers

How to convert a JSON file to a table with dynamic columns in HTML

What happens is that I want to read a JSON file and that as soon as I read it, I created a table from the file with its respective fields. As for example: { "nombre":"Ana", "edad":20, "Hobbie":"Cantar" } And the table is created: Name Age H...
asked by 10.03.2018 / 17:53
3
answers

Error mysqli_query () expects at least 2 parameters, 1 given in to Insert data

I am making a system in which at the time of entering the data, this error marks me.    Error: Warning: mysqli_query () expects at least 2 parameters, 1 given   in <?php require("connect_db.php"); if (isset($_POST['descripcion']) &&...
asked by 01.02.2018 / 23:28
2
answers

How to get the date in php

Good afternoon, it turns out that I have a date in php which works but when it is more than 6 pm it happens to the other day this the code. $fech = date("Y-m-d"); for example today is 20 and I already get 21 in Bogota, I hope you can help m...
asked by 21.01.2018 / 01:24
1
answer

Assign hours with a random with priodities

After searching on Google and not finding anything like that. It occurred to me to make an array of this style $orden= array(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6...
asked by 16.02.2018 / 13:08
2
answers

Parse error: syntax error, unexpected ';', expecting ',' or ')' ... on line 5

I would like to know where the error is, since I am half an hour ago trying to solve it, thank you very much. Code: mysql_pconnect('localhost','root';'');     
asked by 15.02.2018 / 00:04