Jump to content

Retrieving INT's from database


Muncey

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.