Re: Re: probably stupid, but...
| From: | Robert Sossomon | Date: | Fri, 12 Nov 2004 21:20:07 +0000 |
| Subject: | Re: Re: probably stupid, but... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201876@lists.php.net to get a copy of this message | ||
Ben Ramsey is quoted as saying on 11/12/2004 3:41 PM:
You've got some parsing errors going on. Nothing particularly wrong with the logic... <snip>OK, I took out the extra ' that I had at the beginning, and then I changed everything around to: if (!empty($_POST['book_title_'.$i])) { $addtocart = "INSERT INTO
curriculum VALUES ('',$_POST['book_title_'.$i],$_POST['book_level_'.$i],$_POST['level_grades_'.$i],$_POST['book_section_'.$i],$_POST['chapter_'.$i],$_POST['chapter_title_'.$i],$_POST['lesson_title_'.$i],$_POST['skill_'.$i],$_POST['life_skill_'.$i],$_POST['success_indicator_'.$i],$_POST['ncscos_'.$i],$_POST['subject_'.$i],$_POST['pages_'.$i],$_POST['c_kit_'.$i])";
echo "$addtocart";
mysql_query($addtocart);
And it still is producing an empty page (not even echoing out the $addtocart variable) when I run it.
Unfortunately my server admins went AWOL, so I can get the exact error message, but I know it has to be some stupid that I just haven't put my finger on yet.
I could have had this done already doing it one line @ a time, however I want to be able to change either form at any time and have only 2 pieces of code to change.
Thanks for the help so far guys.
Robert
--
Robert Sossomon, Business and Technology Application Technician
4-H Youth Development Department
200 Ricks Hall, Campus Box 7606
N.C. State University
Raleigh NC 27695-7606
Phone: 919/515-8474
Fax: 919/515-7812
robert_sossomon@ncsu.edu