Re: [PHP-DB] Error? new set of eyes...

2002-05-28 Thread Ed Gorski
Why don't you try this instead: while(list($id, $2d, $3d, $web, $prog, $tut, $proj)=mysql_fetch_array($portfolio)) { do whatever.. } the list construct only works with numerical arrays and it might not like the $section array (doesn't it get stored as number indicies AND column

Re: [PHP-DB] Error? new set of eyes...

2002-05-28 Thread Jason Wong
On Tuesday 28 May 2002 21:15, Jas wrote: Hello all, I have an error and I will be darned if I know why. Here is the code: ?php require '/path/to/database/connection/class/db.php'; $table = portfolio; $portfolio = mysql_query(SELECT * FROM $table,$dbh); while ($sections =