Hi
I've always used
while($row = mysql_fetch_array($res)){ etc
to get the data from a mysql resource but i was wondering if there's a simpler way if i just want the name of a product with a specific id
something like this :
$res = mysql_query("SELECT prod_name FROM products WHERE prod_id='1'");
echo $res;
this obviously doesn't work - but is there a way of doing that ?
thanks