2
I have a form that generates multiple fields for adding data, and then sends all the data using for
, doing so multiple insert
in MYSQL. However, I have a problem.
Let’s say I generate 30 forms, out of that total it’s only sending 20, and the rest are not being entered in the database. I wonder if this is being occasioned because of the execution time limit of the script on the host, or is it because the form is too large.
I left below the image of my form, along with the original code to which I edited.
Code for
:
for($i=1; $i<=$total; $i++) {
Aqui fica o `INSERT` da minha MYSQL
}
My form: click here
Original code click here
timeout is from the request? vc create 20 Inserts or make an Insert with multiple values?
– rray
About the timeout I do not know how to answer you because and hosting on the normal flat hostigator on the method of Insert I edited the question and left the original code to get an idea of how and only that I edited for my form adding more fields.
– Striffer
No error happens? the screen is blank? o
ini_set('display_errors',true); error_reporting(E_ALL);
you put?– rray
Yes no mistake happens what is happening and that the screen turns white.
– Striffer
Place those two lines at the top of the page, it will return some error.
– rray
There was no error left a white screen once again when I tried to add 30 forms. I can only add in max 10, otherwise white screen when sending.
– Striffer
Let’s go continue this discussion in chat.
– Striffer