ballouta Posted May 22, 2009 Share Posted May 22, 2009 Hi i wrote a query that is casuing a problem: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/simwsim/public_html/CMS/members/index.php on line 42 the query is: <?php $query = "SELECT members.usernme, members.name, members.emal, members.country, members.tele, members.paword, members.resler, credts.nums FROM members INNER JOIN credts ON members.usernme = credts.usernm "; $result = mysql_query($query); while( $row = mysql_fetch_array($result)) //this is line 42 ?> please help Link to comment https://forums.phpfreaks.com/topic/159222-solved-inner-join-problem/ Share on other sites More sharing options...
Masna Posted May 22, 2009 Share Posted May 22, 2009 or die(mysql_error()); Let us know what's printed. Link to comment https://forums.phpfreaks.com/topic/159222-solved-inner-join-problem/#findComment-839754 Share on other sites More sharing options...
ballouta Posted May 22, 2009 Author Share Posted May 22, 2009 Thanks ALOT there was a wrong coulum name it is working now Link to comment https://forums.phpfreaks.com/topic/159222-solved-inner-join-problem/#findComment-839761 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.