日期:2014-05-17 浏览次数:20739 次
<?
header("Content-type: text/html; charset=gb2312");
$act=$_GET["act"];
if($act=="del") { //删除记录
$id =$_GET["id"];
require('conn.php');
$conn->query("delete from lyb where id=$id");
fy(); }
if($act=="list") { fy();}
function fy() {
require('conn.php');
$sql="select * from lyb order by ID desc";
//echo $sql;
$result=$conn->query($sql);}
<?
header("Content-type: text/html; charset=gb2312");
require('conn.php');
$act=$_GET["act"];
if($act=="del") { //删除记录
$id =$_GET["id"];
$conn->query("delete from lyb where id=$id");
fy(); }
if($act=="list") { fy();}
function fy() {
$sql="select * from lyb order by ID desc";
//echo $sql;
$result=$conn->query($sql);}