How do you define table row indexes?
| From: | Anyangwe, Tanwani | Date: | Tue, 27 Mar 2001 16:21:01 +0000 |
| Subject: | How do you define table row indexes? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7880@lists.php.net to get a copy of this message | ||
The following code:
$result = mysql_query("SELECT * FROM motor_vehicle",$db);
$strSep = ' | ';
while ($myrow = mysql_fetch_array($result))
{
echo $myrow['id'].$strSep;
}
Gives me the following error:
Warning: Undefined index: id in C:\PHP\Test_Scripts\testdb2.php on line 16