Error while doing Multiple Insert

Asked

Viewed 73 times

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?

  • 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.

  • No error happens? the screen is blank? o ini_set('display_errors',true); error_reporting(E_ALL); you put?

  • Yes no mistake happens what is happening and that the screen turns white.

  • Place those two lines at the top of the page, it will return some error.

  • 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.

Show 2 more comments

1 answer

1


I already solved the problem was in the limit case of post_max_size that was 5m increased by tinkering with php.ini and the problem was fixed.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.