sandbudd Posted August 15, 2009 Author Share Posted August 15, 2009 p2grace I get the same thing I can see the user id but thats it no firstname etc... Quote Link to comment https://forums.phpfreaks.com/topic/170323-solved-simple-echo-statement-not-working/page/2/#findComment-898561 Share on other sites More sharing options...
wildteen88 Posted August 15, 2009 Share Posted August 15, 2009 mysql_fetch_object returns an object not an array. So you cant use echo $row['firstname']; echo $row['lastname']; You need to use echo $row->firstname; echo $row->lastname; Quote Link to comment https://forums.phpfreaks.com/topic/170323-solved-simple-echo-statement-not-working/page/2/#findComment-898563 Share on other sites More sharing options...
sandbudd Posted August 15, 2009 Author Share Posted August 15, 2009 perfect....thank you sooooo much, man this was driving me crazy! Appreciate all the help Quote Link to comment https://forums.phpfreaks.com/topic/170323-solved-simple-echo-statement-not-working/page/2/#findComment-898565 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.