darbok Posted June 2, 2015 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; ?> Link to comment Share on other sites More sharing options...
Ingolme Posted June 2, 2015 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'] Link to comment Share on other sites More sharing options...
dauruk0512 Posted June 10, 2015 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 Link to comment Share on other sites More sharing options...
Alatoru Posted June 10, 2015 Share Posted June 10, 2015 Having space in the name of tables is very wrong and might cause the error. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now