casperpaul Posted September 12, 2006 Share Posted September 12, 2006 I am trying to extract info from db but it keeps returning "Array". My code is below, any help will be appreciated. $conn = db_connect(); $query = "select first_name from users where email='$email'"; $result = mysql_query($query); $result = mysql_fetch_array($result); return $result; Always returns "Array". Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 12, 2006 Share Posted September 12, 2006 [code] $conn = db_connect(); $query = "select first_name from users where email='$email'"; $result = mysql_query($query); $row = mysql_fetch_array($result); echo $row[first_name];[/code] 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.