Jump to content

Archived

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

billshackle

Selecting Data By Name from MySql

Recommended Posts

Ok so here is my issue. I have two tables on one database. One stores my general contact info such as name, address etc etc.

I have another table which stores notes on each of the names in the database. When i submit a note to the database it records the id number of the page it has come from. What i want to do is output these notes on the same page as the contact so e.g. the contact's page will be www.pageurl.com/contacts.php?id=2343 and i want to pull every note submitted with 2343 out of my notes table.

Is there any easy way to do this?

Thanks in advance.

Cheers

Share this post


Link to post
Share on other sites
[code]"SELECT * FROM notes_table WHERE client_id = $_GET[id]"[/code]

Share this post


Link to post
Share on other sites

×

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.