mysql query
| From: | Chris Schoeman | Date: | Tue, 10 Sep 2002 16:53:18 +0000 |
| Subject: | mysql query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115863@lists.php.net to get a copy of this message | ||
I use the script below to get one value out of a database:
$result = mysql_query("select euro from brandstofprijzen where id=2")
or die (mysql_error());
while ($row = mysql_fetch_array($result))
{
$euro = $row["euro"];
}
mysql_free_result($result);
This is working fine, but is there an easier (less code) way to do
this?
Thankx