RE: [PHP] unexpected t varable
| From: | John W. Holmes | Date: | Sat, 05 Oct 2002 02:17:05 +0000 |
| Subject: | RE: [PHP] unexpected t varable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118922@lists.php.net to get a copy of this message | ||
> Can someone tell where I messed up on this code snippit?
Your first mistake is not giving us the full error and the line
number...
> if ($res->numRows() > 0){
> list($id, $question, $responce1,
$responce2,
> $responce3) = $res->fetchRows()
and you're missing a ; here... ^^
> $id = $row[0];
> $question = $row[1];
> $responce1 = $row[2];
> $responce2 = $row[3];
> $responce3 = $row[4];
> }
---John Holmes...