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! Quote Link to comment 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 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.