RE: [PHP] Re: Loop Oops....

2004-03-03 Thread Alex Hogan
Found it. You were right, it was $question instead of $questions. Many thanks. alex > -Original Message- > From: Andre Cerqueira [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 03, 2004 9:34 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Loop Oops >

RE: [PHP] Re: Loop Oops....

2004-03-03 Thread Alex Hogan
Well that fixed the error from coming up, but now the values in the db are empty. I don't even get "Array". alex hogan > -Original Message- > From: Andre Cerqueira [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 03, 2004 9:34 AM > To: [EMAIL PROTECTED

[PHP] Re: Loop Oops....

2004-03-03 Thread Andre Cerqueira
probably, some of those $_SESSION['question#'] are unset, or arent arrays.. try: foreach ($answers as $questions) { $question .= "__"; if (!is_array($questions)) continue; foreach ($questions as $subquestion) $question .= $subquestion."--"; } } >$insert_query = "INSERT INTO Survey