coder9 Posted July 29, 2008 Share Posted July 29, 2008 hi can you see any problem with this codes below? $query = "SELECT * FROM jwinners WHERE gsid='1'"; $result = mysql_query($query) or die("Problem with the query: $query on line " . __LINE__ . '<br>' . mysql_error()); $row = mysql_fetch_row($result); $username = $row[username]; echo "user: ".$username; i used it and it run without an error and it show no value at all any help or advice please? thank you. Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted July 29, 2008 Share Posted July 29, 2008 change this... $row = mysql_fetch_row($result); to either this: $row = mysql_fetch_assoc($result); or this: $row = mysql_fetch_array($result); either one should work. Quote Link to comment Share on other sites More sharing options...
coder9 Posted July 29, 2008 Author Share Posted July 29, 2008 thank you. Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted July 29, 2008 Share Posted July 29, 2008 click "Topic Solved" button, bottom left of this post and no problem. Glad I could help. ACE 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.