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". Link to comment https://forums.phpfreaks.com/topic/20450-solved-simple-php-questions/ 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] Link to comment https://forums.phpfreaks.com/topic/20450-solved-simple-php-questions/#findComment-90155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.