niche Posted December 1, 2011 Share Posted December 1, 2011 I displayed "Resource id #76" when I echoed a variable that's supposed to equal "1". What do you think this means? Link to comment Share on other sites More sharing options...
alexnofue Posted December 1, 2011 Share Posted December 1, 2011 Hi, that is like something from a result set from a database query, what do you get from a print_r or a var_dump? Link to comment Share on other sites More sharing options...
niche Posted December 1, 2011 Author Share Posted December 1, 2011 Seems I unintentionally used a variable for two different purposes. Thanks for the reset alexnofue. Link to comment Share on other sites More sharing options...
Ingolme Posted December 1, 2011 Share Posted December 1, 2011 If you're getting the result of mysql_query(), you have to extract the information using one of mysql_fetch_row(), mysql_fetch_assoc() or mysql_fetch_array(). The mysql_query() function only returns a resource. Link to comment Share on other sites More sharing options...
niche Posted December 1, 2011 Author Share Posted December 1, 2011 Thank you too Ingolme! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.