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? 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; 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. 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 Link to comment https://forums.phpfreaks.com/topic/55813-solved-resource-id-3/#findComment-275889 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.