Re: [PHP] Foreach and mydql_query problem

[email protected] (Jim Giner)
Newsgroups php.general
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.