I know this is a common question, but I just can't seem to find exactly what I am looking for. I might have even seen the answer, but since I am new to this I might have missed it!
Basically I have MySQL table with ten products in it. Each product has it's own row with several columns for the product's features.
Now, I have one HTML file with placeholders for each of the product's features. I have been able to call on the database, but all of the products are coming up at once. I'd like to be able to call up just one product at a time with it's own page and own link. I'm guessing that I do this with IDs, but I'm a little confused about them. Can I use IDs to have different URLS for each of the products all using the one HTML file?
Here is the code that I have working now, but obviously it is not correct. It was the closest that I could get. Any help would really be appreciated!
<?php
$query = "SELECT * FROM products";
$result = mysql_query($query) or die("Error in query." .mysql_error());
?>
<?php
while($row = mysql_fetch_object($result))
{
?>
<?php echo($row->description); ?>
Thanks