Hi,
I'm a newbie to PHP and I've been struggling with this for a VERY long time now. I finally found a way to retrieve the product ID from the previous page. But, now I need to take the product ID I retrieved and echo out to the page the product Name associated with the product ID.
Here is what I've come up with so far, but it is giving me an error, that it does not recognize "$productId". So, what many things am I doing wrong?
<?php
$productId = $_GET['prodId'];
$results = mysql_query("SELECT product_Name,
FROM tbl_products
WHERE product_ID = $productId"); //This is where I think I'm going wrong.
echo $results;
?>