if i have a query that i know is only going to return 1 value. is there a function in php where it can go straight into a variable instead of: $val = mysql_fetch_array($val); $val1 = $val[0];
http://www.php.net/mysql-result