Questions tagged as 'php'

0
answers

How to perform JSON searches created with MySQL

I have to do a lot of searches in a SQL table, so it occurred to me to do 1 single selected query and save it in a JSON like this: SELECT json_object('id', Id, 'nombre', nombre) FROM etiquetas What I do not know, is how to search inside tha...
asked by 14.09.2018 / 01:08
2
answers

Update a record in a Mysql table from a POST variable?

I am trying to update a record in a MySQL table, by means of a script called " prueba_envio_1.php " which selects the value of the first row of the table with heading waiting when you press the call next button, when you get this information...
asked by 03.10.2018 / 17:41
2
answers

Execute javascript code inside a script called with ajax

I need to show an alert and stop the execution of the script when the user clicks on the accept button when he does not select any week to pay, this is the ajax function: $('#sub').click( function() { $("#update").submit(function(e)...
asked by 03.10.2018 / 22:52
1
answer

How to enter data from an SQL query in a form already done in PHP?

In my case I have a form and several functions, but I have not been able to transfer information from a sql query to already defined text fields, I want to be able to have the id, call its respective information in each text field when pressing...
asked by 12.09.2018 / 00:17
0
answers

Warning: mysqli_fetch_array () expects parameter 1 to be mysqli_result, boolean given

I have this error:    Warning: mysqli_fetch_array () expects parameter 1 to be mysqli_result,   boolean given in C: \ xampp \ htdocs \ counting-votes-master \ statistics.php   online 62 And this is my code: <?php session_start();...
asked by 12.09.2018 / 17:05
1
answer

How can I show php errors elsewhere

When you give me an error for example: Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\sitio\index.php on line 5 I would like it to appear in div or section of html , so that it is not ugly on top of...
asked by 24.04.2018 / 03:52
3
answers

Sort an array

I have this Array Array ( [0] => Array ( [0] => Array ( [data] => 2017<br>Condenser<br>Buick Verano ) [1] => Array...
asked by 24.04.2018 / 20:12
0
answers

How can I upload files to google drive from codeigniter using the google API?

I am creating a web application to register students with codeigniter and I want to make the photos that are uploaded to the website stored in Google Drive and at the same time display them on the website. I have this code created in the control...
asked by 18.09.2018 / 16:43
1
answer

Read CSV with thousands of records and insert into batch database

I need to read and insert a CSV of more than 100,000 records. I have achieved that if it is of a small size of rows I do what I want, but when I work with the size that I mention, it blocks the page. My idea was to do this in batches, for exa...
asked by 18.09.2018 / 16:13
1
answer

Detect that a record to be deleted does not exist in the SQL table (MySQL)

Thanks for helping me a lot. I have a simple doubt. I made a form that deletes records from a table, it works correctly, but I can not get an error message saying that the record does not exist, it simply says that I delete it (When that reco...
asked by 04.10.2018 / 14:15