The aliases like p and v. Thank you for the explanation but, I did one mistake I apologizes. I miss to put in the first post that products table has a field called p.colon_id and it is compare with a variable coming from the url call menu.
the query alone would look like:
$query1= "select p.id, p.name, p.image, p.colon_id
from products p
where p.colon=" .(int) $_GET['menu']
$result=mysql_query($query1,$connection);
$row = mysql_fetch_array($result) {
But I wonder how it would look with the implicit join? I have done as below but don't know if it is correct.
correct me if I am wrong please.
<?php
$query1= "select p.id, p.name, p.image, p.colon_id, v.product_id,v.price,v.description,v.image from products p,product_varieties v where p.colon=" .(int) $_GET['menu'] AND p.id = v.product_id
$result = mysql_query($query1, $connection);
?>