note 23840 added to function.mysql-fetch-array
| From: | erik at nflare dot com | Date: | Mon, 29 Jul 2002 23:23:08 +0000 |
| Subject: | note 23840 added to function.mysql-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33906@lists.php.net to get a copy of this message | ||
Actually this is the easiest way to retrieve and display db data:
$query = "SELECT * FROM $db_table WHERE userid='$userid'";
$result = mysql_query($query)
or die(mysql_error());
while ( $row = mysql_fetch_array($result) ) {
extract($row);
echo "$date $account $type $action $amount $decription";
}
mysql_free_result($result);
--
http://www.php.net/manual/en/function.mysql-fetch-array.php
http://master.php.net/manage/user-notes.php?action=edit+23840
http://master.php.net/manage/user-notes.php?action=delete+23840
http://master.php.net/manage/user-notes.php?action=reject+23840