SELECT * FROM `user_cart` as c
JOIN
`product` AS b ON c.prod_id = b.prod_id
WHERE
c.id = "{$_SESSION["user-id"]}"
I have a value in product called from, which is either an or b
, but what is shown now is that as long as the id matches, it will all be displayed
while($row = mysqli_fetch_array($data)){
....
}
but what I want to score now is
if the threshold from value is a, then it is shown in the upper part
if the from is b, it is shown in the lower half?