//第一个页面 name="index1.php"
<?
include "../signup/mysql.php";
$time1=time();
//$userid=983530409;
echo $n;
if($n==1){
$userid=time();
$nick="g".$userid;
$last_time=$userid;
$sql="insert into chat_user (userid,id,last_time) values ('$userid','$nick','$last_time')";
mysql_query($sql)or die(mysql_error());
$sql="insert into chat_user_list (userid,id,last_time) values ('$userid','$nick','$last_time')";
mysql_query($sql)or die(mysql_error());
echo"<FONT SIZE=6 COLOR=#FF0066><B>LOADING ........</B></FONT>";
echo "<script language='JavaScript'> window.open('index1.php?userid=".$userid."','chat','toolbar=no,directories=no,menubar=no,width=800,height=570,left=0,top=0,status=0');";
echo" window.close() </script>";
}
if($n==983530409)
{
$sql="select userid,sex,passwd from user where id='$n'";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$nick=$row["userid"];
$passwd=$row["passwd"];
$sex=$row["sex"];
$sql="insert into chat_user (userid,passwd,sex,last_time,id)values('$n','$passwd','$sex','$time1','$nick')";
mysql_query($sql)or die(mysql_error());
echo"<FONT SIZE=6 COLOR=#FF0066><B>LOADING ........</B></FONT>";
echo "<script language='JavaScript'> window.open('index1.php?userid=".$n."','chat','toolbar=no,directories=no,menubar=no,width=800,height=570,left=0,top=0,status=0');";
echo" window.close(); </script>";
}
?>
<html>
<head>
<title>::: FEIT聊天室 :::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>
<frameset cols="*,132" frameborder="NO" border="0" framespacing="0" rows="*">
<frameset rows="*,111" frameborder="NO" border="0" framespacing="0" cols="*">
<frame name="top" src="index.php?userid=<? echo $userid?>" scrolling="AUTO">
<frame name="bottom" scrolling="NO" noresize src="frame3.php?userid=<? echo $userid ?>">
</frameset>
<frameset rows="*,110" frameborder="NO" border="0" framespacing="0">
<frame name="right" scrolling="AUTO" noresize src="frame2.php?userid=<? echo $userid?>">
<frame name="bottomFrame" scrolling="NO" noresize src="frame4.php">
</frameset>
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
<p>很抱歉!这是一个分帧页面,但由于你的浏览器不支持,所以不能浏览! </p>
<p>Sorry!This page uses frames,but your browser doesn't support them .</p>
</body>
</noframes>
</html>
<?
include "../signup/mysql.php";
$time1=time();
//$userid=983530409;
echo $n;
if($n==1){
$userid=time();
$nick="g".$userid;
$last_time=$userid;
$sql="insert into chat_user (userid,id,last_time) values ('$userid','$nick','$last_time')";
mysql_query($sql)or die(mysql_error());
$sql="insert into chat_user_list (userid,id,last_time) values ('$userid','$nick','$last_time')";
mysql_query($sql)or die(mysql_error());
echo"<FONT SIZE=6 COLOR=#FF0066><B>LOADING ........</B></FONT>";
echo "<script language='JavaScript'> window.open('index1.php?userid=".$userid."','chat','toolbar=no,directories=no,menubar=no,width=800,height=570,left=0,top=0,status=0');";
echo" window.close() </script>";
}
if($n==983530409)
{
$sql="select userid,sex,passwd from user where id='$n'";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$nick=$row["userid"];
$passwd=$row["passwd"];
$sex=$row["sex"];
$sql="insert into chat_user (userid,passwd,sex,last_time,id)values('$n','$passwd','$sex','$time1','$nick')";
mysql_query($sql)or die(mysql_error());
echo"<FONT SIZE=6 COLOR=#FF0066><B>LOADING ........</B></FONT>";
echo "<script language='JavaScript'> window.open('index1.php?userid=".$n."','chat','toolbar=no,directories=no,menubar=no,width=800,height=570,left=0,top=0,status=0');";
echo" window.close(); </script>";
}
?>
<html>
<head>
<title>::: FEIT聊天室 :::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>
<frameset cols="*,132" frameborder="NO" border="0" framespacing="0" rows="*">
<frameset rows="*,111" frameborder="NO" border="0" framespacing="0" cols="*">
<frame name="top" src="index.php?userid=<? echo $userid?>" scrolling="AUTO">
<frame name="bottom" scrolling="NO" noresize src="frame3.php?userid=<? echo $userid ?>">
</frameset>
<frameset rows="*,110" frameborder="NO" border="0" framespacing="0">
<frame name="right" scrolling="AUTO" noresize src="frame2.php?userid=<? echo $userid?>">
<frame name="bottomFrame" scrolling="NO" noresize src="frame4.php">
</frameset>
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
<p>很抱歉!这是一个分帧页面,但由于你的浏览器不支持,所以不能浏览! </p>
<p>Sorry!This page uses frames,but your browser doesn't support them .</p>
</body>
</noframes>
</html>
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“聊天室php&mysql(一)”评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。