Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

seventeen

macrumors member
Original poster
Apr 9, 2009
41
0
Denton, Tx
What is the best way to return a single value from a mysql query with php? Rather than use mysql_fetch_array or assoc...

Basically is there a mysql function i can use to return the value into a single variable?

ex:
PHP:
$single_value = mysql_...($resource);
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.