Jump to content

quick query question!


benji87

Recommended Posts

I know im probably being dumb here but what is the correct syntax to use in a query when you want to return more than one result that has the same data in a field of the database??

for example:

[code] SELECT * FROM table WHERE topicid = $id [/code]

I cant only get it to return to me one result otherwise i get a syntax error.

Basicly its for a comments page it will show all the comments made on a topic contained in another table.

It seems to be finding only one match at the moment and not all of them!
Link to comment
https://forums.phpfreaks.com/topic/28862-quick-query-question/
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.