Getting just one value ?
Posted: Wed Apr 20, 2005 8:39 pm
Hi guys,
Sometimes I need just one value.
Like so:
So is all that necessary ? Maybe there is a faster way ?
Thanks.
feyd | Please review how to post code using
Sometimes I need just one value.
Like so:
Code: Select all
// $id is unique, no duplicates
$query="e;SELECT field02 FROM table01 WHERE field01=$id"e;;
$result=mysql_query($query);
$row=mysql_fetch_array($result);
// here is the value I want
$myValue=$rowї"e;field02"e;];Thanks.
feyd | Please review how to post code using
Code: Select all
andCode: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]