View product attributes function
1, Jump page design
##Code:
">
2, Shopping cart page display
Create a new goodsshow.php file
query($sql); $sql="select *from goods where id=".$id; $result=$mysqli->query($sql); while($row=$result->fetch_assoc()){ ?>
Because shopping websites basically count the number of clicks on which product a user clicks on, here we also add one to the hits field every time a user clicks
$sql="update goods set hits=hits 1 where id=".$id;
3, the effect is shown as follows: