Best unofficial Apache Server developers community |
|
So I have a form that can increase and decrease according to what the user adds to the page. To be able to handle unknown posts, I have set up a series of foreach loops that goes through each section in the table and unravels the array for each. The form is a series of tables. Each table is for one category, and each row is a different part of it. Every row has 7 parts to it. The script circles through and gets the parts necessary to insert each column piece into the database. On my personal home server the code returns no error and updates the database accordingly. On my paid hosting though I get an error. The error comes in after the the first foreach. It comes in at:
This is the error: Warning: Invalid argument supplied for foreach() in /home/sariep5/public_html/werchris.com/circuitcheck/submit.php on line 14 My code is below:
That is the HTML part of the form. Sections just like that are created only with different parts to the name. So esd could be any other category, 8 increments, and the other 7 are the same in every section.
Thanks!
posted via StackOverflow
|
![]()  
|
That's simple
Try a |