I am building an eCommerce site, my plan is instead of having multiple item pages, to have one and depending on user choice that is what loads on the item page from the products page.
At the moment i have a products table with id1, id2, id3, and i have a item table. My sql script to show the items is as follows and works well.
'.$row['model'].'<br><br>'.$row['size'].'<br><br>Price:$ '.$row['price'].'
Where I am having trouble is using the GET method for the two tables.
$id = $_GET['productid1'];
$wine="SELECT * FROM wine WHERE id='1' AND productid='1'";
$query_wine=mysqli_query($conn,$row);
while($row=mysqli_fetch_array($query_wine,MYSQLI_ASSOC))
echo '.$row['brand'].'</strong> Price:$ '.$row['price'].';
I know i have not done this properly - it does not display anything except the word price on item page.
Please do not make things over complicated if you are going to help me, I am only learning, my self belief plummets so please be nice. I do not understand anyone else code on different questions as like i said, I am only learning.