RE: [PHP-DB] SELECT statement does not return rows

From: Date: Fri, 01 Feb 2002 23:34:55 +0000
Subject: RE: [PHP-DB] SELECT statement does not return rows
Groups: php.db 
Request: Send a blank email to php-db+get-16433@lists.php.net to get a copy of this message
oops.....forgot a semicolon on the first line of the multi-line code segment.... > -----Original Message----- > $row = mysql_fetch_array($result) > echo > '<table><tr><th>column</th><th>value</th></tr>'; > while(list($key, $val) = each($row)) { > // $row has two key/value pairs per column -- one integer, > one string > if (is_string($key)) { > echo "<tr><td>$key</td><td>$val</td></tr>"; > } > }

« previous php.db (#16433) next »