<?phperror_reporting('E_ALL&~E_NOTICE');header('content-type:text/html;charset=utf-8');session_start();$act=$_GET['act'];//然后是获取id的值$id=(int)$_GET['id'];//然后是连接数据库$link=mysqli_connect(...
<?phperror_reporting('E_ALL&~E_NOTICE');$link=mysqli_connect('localhost','root','','test44');mysqli_set_charset($link,'utf8');$sql="select id,gname,price,pic from shop_goods";$result=mysql...
<?php//购物车页面error_reporting('E_ALL&~E_NOTICE');header('content-type:text/html;charset-utf-8');session_start();//如果为空,证明没有物品在里面,,所以要去上一页买东西啦if(empty($_SESSION['cart'])){ exit("<script...
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> </style></head><body> <?php fo...
create table if not exists shop_goods(id int unsigned auto_increment key,gname varchar(50) not null unique,price decimal(10,2) not null default 0,number int unsigned not null default 0,pic varcha...
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号