The following query is fetching some product info on a page which is fine, but I also want to show the number of the product that it occurs as a text, however, I used groupby but I also want to use count on pro_id.
"SELECT * FROM cart WHERE session_id='" . $_SESSION['session'] . "' GROUP BY
pro_id "