session_start(); //启动会话
$_SESSION['user']=$user; //将用户名存入$_SESSION['user'],这是关键
setcookie("user","",time()-60); //将会话Cookie变量user设置为过期,即删除Cookie
session_unset(); //删除$_SESSION中的Session变量
session_destroy(); //销毁Session,删除Session ID
共有 mysql_num_rows($result) 条记录
$row=mysql_fetch_assoc($result);
$conn=mysql_connect("localhost","root","");
mysql_select_db("test",$conn);
$result=mysql_query($sql,$conn);
$result=mysql_query("Select * from lyb",$conn);
mysql_query("set names 'uft8'");
mysql_query( $sql) or die('执行失败');
mysql_query($sql) && mysql_affected_rows()==1
location.href='index.php'
header("Location:index.php");
$sql=implode(',',$selectid); //将各个数组元素用“,”号连接起来
------------恢复内容结束------------