创建视图show.php
exec('set names utf8');
$sql='select * from ***';
$info=$pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC);
?>
id
title
content
$v){ ?>
">= $v['id'] ?>
= $v['title'] ?>
= $v['content'] ?>
创建adminDel.php
exec('set names utf8');
$sql='delete from *** where id in ('.$str.')';
$res=$pdo->exec($sql);
//受影响行数
echo $res;
?>