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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.