accent Posted February 19, 2009 Share Posted February 19, 2009 Do I have to use $myrow[0] instead of $myrow["firstName"]? $result = mysql_query("select firstname, lastname from user"); $myrow = mysql_fetch_row($result) ; echo $myrow[0] works but echo $myrow['firstname'] doesn't. What setting do I need to change to make $myrow['firstname'] works? Thanks! Link to comment https://forums.phpfreaks.com/topic/145860-solved-do-i-have-to-use-myrow0-instead-of-myrowfirstname/ Share on other sites More sharing options...
corbin Posted February 19, 2009 Share Posted February 19, 2009 http://php.net/mysql_fetch_assoc http://php.net/mysql_fetch_array http://php.net/mysql_fetch_row Link to comment https://forums.phpfreaks.com/topic/145860-solved-do-i-have-to-use-myrow0-instead-of-myrowfirstname/#findComment-765822 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.