note 6953 modified in msql_fetch_array by ronabop
| From: | ronabop@php.net | Date: | Wed, 13 Sep 2000 16:52:51 +0000 |
| Subject: | note 6953 modified in msql_fetch_array by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4834@lists.php.net to get a copy of this message | ||
Here is the format for getting something out of an msql_fetch_array.
while($row = msql_fetch_array($result)) {
echo $row["client_id"];
echo $row["fullname"];
}
plus....
$client_id = $row["client_id"];
$fullname = $row["fullname"];
Getting array data by fieldname:
echo $row[client_id];
echo $row[fullname];
This is the format... The difference is... No Quotation (") marks
So that you don't have to go through the same bloody problems I did...
and in case I forget...
Brian
http://www.php.net/manual/function.msql-fetch-array.php