links
Moderator: General Moderators
links
Is there a way to store links inside a mysql database? I want to display each different link as the word "preview" for the products I sell. I could make a field and have "preview" for each item, but then how could i assign a different link (each link would point to a dfiferent file) for each?
Store all the product information in a database table with an ID, then use
Then build the object.php page using the information from the database, and the SQL you need will end
Code: Select all
print "<a href=\"object.php?id=".$database_id_variable."\">Preview</a>";Code: Select all
$query= "...WHERE id = $"._GET['id'];