gevo12321 Posted June 16, 2007 Share Posted June 16, 2007 hi i very new to php and and i wrote this just testing it out to see how it works <?php include 'connect.php'; $button1 = mysql_query("SELECT button1 FROM layout WHERE page='home'"); echo $button1; mysql_close($link) ?> and it just says Resource id #3 what does it mean and how can i fix it? Quote Link to comment https://forums.phpfreaks.com/topic/55813-solved-resource-id-3/ Share on other sites More sharing options...
chigley Posted June 16, 2007 Share Posted June 16, 2007 $query = mysql_query("SELECT button1 FROM layout WHERE page = 'home'") or die(mysql_error()); list($button1) = mysql_fetch_row($query); echo $button1; Quote Link to comment https://forums.phpfreaks.com/topic/55813-solved-resource-id-3/#findComment-275710 Share on other sites More sharing options...
redarrow Posted June 16, 2007 Share Posted June 16, 2007 Can someone while on this resource error subject, sorry to intrude but post the webpage that lists all resource of mysql errors cheers. Quote Link to comment https://forums.phpfreaks.com/topic/55813-solved-resource-id-3/#findComment-275714 Share on other sites More sharing options...
gevo12321 Posted June 16, 2007 Author Share Posted June 16, 2007 thank you very very much it worked Quote Link to comment https://forums.phpfreaks.com/topic/55813-solved-resource-id-3/#findComment-275889 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.