This code should work, i know it will only output the last value, but i think this is wrong, because i use it when im selecting all fields, so i dont know if this code is different because im only selecting one field.
"$f_cust_id= $row[0];"
any ideas??
db_connect();
db_select ($db_info);
$query = "SELECT uid FROM aq_info WHERE cust_name LIKE '$p_cust_firstname' ORDER BY uid ASC";
$result = mysql_query( $query);
$f_cust_id= $row[0];
echo $f_cust_id;
db_close();