in the code provided, there is a line that says
while($product = mysql_fetch_assoc($query)){
What that is doing is taking the results from your query ($result) and building an associative array called $product. Associative means the array keys are not numerical, but rather correspond to the field names in your mysql database. So if you have the fields name, address, email, and phone in your database, after the line above, you could access them using
$product["name"]
$product["address"]
$product["email"]
$product["phone"]
So to answer your question, $product["ProductName"] would print the field ProductName in your mysql database. If that field doesn't exist, replace ProductName with the name of that field.
HTH.