Re: Foreach and mydql_query problem
| From: | Jim Giner | Date: | Mon, 22 Jul 2013 14:45:30 +0000 |
| Subject: | Re: Foreach and mydql_query problem | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321677@lists.php.net to get a copy of this message | ||
Your original code snippet had some errors. It really couldn't have been what you wanted to do.
Example:
You have a named field of 'number_of_items' and then you try to retreive $_POST['number_of_itemsi']. That won't work.
Then you have a var called $number_of_items which we don't see defined, and you are assigning each to $itemi but then you use $item in your query. Very Confusing!!
Perhaps if you clean up the errors you might see better results.