Muncey Posted July 21, 2007 Share Posted July 21, 2007 Well im making a very basic forum system and i've got everything done and im just editing it making it gradually better. I have a topic table in the database with topic id and forum id (the id of the forum the topic is in). So i did a query "select forum id from topics where id = $_GET['id']" thats basically it... i echoed the result and got "Resource id #7" What does this mean? I thought it ment id = 7 but it's not, it's 2. I need the forum id it's in so i can match that id to the forum in the forums table so i can then retrieve the name of the forum and display it. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/61119-retrieving-ints-from-database/ Share on other sites More sharing options...
metrostars Posted July 21, 2007 Share Posted July 21, 2007 It's probably a problem with your SQL. Post it and let us look. Link to comment https://forums.phpfreaks.com/topic/61119-retrieving-ints-from-database/#findComment-304161 Share on other sites More sharing options...
Muncey Posted July 21, 2007 Author Share Posted July 21, 2007 No problem now, i used an array instead and it got it fine. Link to comment https://forums.phpfreaks.com/topic/61119-retrieving-ints-from-database/#findComment-304163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.