darbok 1 Posted June 2, 2015 Report Share Posted June 2, 2015 I'm getting a resource #4 error, not sure how to fix it, but i bet its an easy fix that i'm not seeing. <?php $result=mysql_query("SELECT * FROM topdata a, venuetop b, stats c, mid_data d, influence e, botdata f, accounts g WHERE (a.char_name=b.char_name) AND (b.char_name=c.char_name) AND (c.char_name=d.char_name) AND (d.char_name=e.char_name) AND (e.char_name=f.char_name) AND (f.char_name=g.log_name) AND (a.char_name="$_POST[char_name]")") or die ("Couldn't get character data.<br>".mysql_error()."<br>Please contact Savvannis with your login name, character name, the above error and the page address above."); $row=mysql_fetch_array($result); echo $result; ?> Quote Link to post Share on other sites
Ingolme 1,033 Posted June 2, 2015 Report Share Posted June 2, 2015 Resource #4 is just the name of the resource you're printing out. Instead of echo $result, try echo $row['a'] Quote Link to post Share on other sites
dauruk0512 10 Posted June 10, 2015 Report Share Posted June 10, 2015 My suggest please paste your query in your phpmyadmin for example if everthying i right you query is right, Freddy Sidauruk Quote Link to post Share on other sites
Alatoru 4 Posted June 10, 2015 Report Share Posted June 10, 2015 Having space in the name of tables is very wrong and might cause the error. Quote Link to post Share on other sites
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.