note 6953 deleted from function.msql-fetch-array by didou
| From: | didou@php.net | Date: | Mon, 04 Apr 2005 22:10:45 +0000 |
| Subject: | note 6953 deleted from function.msql-fetch-array by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-87468@lists.php.net to get a copy of this message | ||
Note Submitter: scentre at one dot net dot au
----
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