Jump to content

[SOLVED] Do I have to use $myrow[0] instead of $myrow["firstName"]?


accent

Recommended Posts

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!

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.