execute();while($row=$s">
时间:2021-07-01 10:21:17 帮助过:22人阅读
require("inc/pdo.php");
$select=$dbc->prepare("select id,slide_name,slide_href,slide_img from zt_slide");
$select->execute();
while($row=$select->fetch()){ ?>
焦点图管理
$id=$_POST['id'];
$name=$_POST['slide_name'];
$img=$_POST['img'];
$href=$_POST['slide_href'];
foreach($id as $id1)
{
echo $id1."
";
}
foreach($name as $slide_name)
{
echo $slide_name."
";
}
foreach($img as $slide_img)
{
echo $slide_img."
";
}
foreach($href as $slide_href)
{
echo $slide_href."
";
}
//$sql="UPDATE tab SET slide_name=$slide_name,img=$slide_img, WHERE id = $id"; 请问SQL应该怎么写?
?>