biscutty Posted August 11, 2003 Share Posted August 11, 2003 How can I extract the actual value of customerID to a variable from the result of the following query? :? PHP: -------------------------------------------------------------------------------- $result = @mysql_query(\"SELECT customerID FROM customers WHERE dirNAME = \'.$jclogin.\'\"); -------------------------------------------------------------------------------- Thanks ?>[/code] Quote Link to comment Share on other sites More sharing options...
DylanBlitz Posted August 11, 2003 Share Posted August 11, 2003 [php:1:5c656c3b10] $result = @mysql_query(\"SELECT customerID FROM customers WHERE dirNAME = \'.$jclogin.\'\"); if (!$result) { echo mysql_errno().\": \".mysql_error().\"n\"; exit; } $custdata = mysql_fetch_array($result); $customerID = $custdata[customerID]; [/php:1:5c656c3b10] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.