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
>
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
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
3 matches
Mail list logo