Heim >Backend-Entwicklung >PHP-Tutorial >php批量上传二[带预览]_PHP教程
$id = $_GET['id'];
$sql = "select * from biao where pid=".$id;
$res = mysqli_query($conn,$sql);
$num = mysqli_num_rows($res); //现有多少张图片
$sql1 = "select * from biao where id=".$id;
$res1 = mysqli_query($conn,$sql1);
$row1 = mysqli_fetch_assoc($res1);
$num1 = $row1['p_num'];
$p_name = $row1['p_name'];
?>