User's Saved Content

What is the best way to have a user be able to save content from another table? I want to have a page that loads only the saved content that users has saved.

New table:

ID
User_ID
Table_Name // The table name where the data is stored
Row_ID // The row that the user has saved

SELECT :Row_ID
FROM :Table_Name
WHERE User_ID = :User_ID

So if I were to a a star on one of my items so that when clicked it inserted that data and changed the star to another image how do I do that? Add a href to the img and run a php script?

I think you have a lot of different options…

But I think the best way would be to wrap it in form tags and use a submit button, next to the image. When pressed update the database with the new image.

Sponsor our Newsletter | Privacy Policy | Terms of Service