用PHP和ACCESS写聊天室(二)_php基础

chatmain.php3
如下:
<html>
<head>
<title>PHP+ACCESS聊天室</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<frameset cols="*,180" frameborder="NO" framespacing="0">
    <frameset rows="*,30,30" frameborder="NO" framespacing="0">
        <frame name="chtcont" scrolling="AUTO" src="chtcont.php3?id=<?php echo $sUserID; ?>&ps=<?php echo $sPass; ?>">
        <frameset cols="*,1" frameborder="NO" framespacing="0">
            <frame name="cinput" scrolling="NO" noresize src="cinput.php3?id=<?php echo $sUserID; ?>&ps=<?php echo $sPass; ?>">
            <frame name="leave" scrolling="NO" noresize src="reflv.php3?id=<?php echo $sUserID; ?>&ps=<?php echo $sPass; ?>">
        </frameset>
        <frame name="emotion" scrolling="NO" src="emotion.php3?id=<?php echo $sUserID; ?>&ps=<?php echo $sPass; ?>">
    </frameset>   
    <frameset rows="154,*" frameborder="NO" framespacing="0">  
        <frame name="room" scrolling="NO" noresize src="room.php3?id=<?php echo $sUserID; ?>&ps=<?php echo $sPass; ?>">
        <frame name="member" scrolling="NO" src="member.php3?id=<?php echo $sUserID; ?>&ps=<?php echo $sPass; ?>">
    </frameset>
    <noframes>
    <body>
        <p>This page uses frames, but your browser doesn't support them.<br>本页面使用了帧,但是您的浏览器不支持。</p>
    </body>
    </noframes>
</frameset>
</html>  

【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】    

时间: 2024-10-24 15:08:17

用PHP和ACCESS写聊天室(二)_php基础的相关文章

用PHP和ACCESS写聊天室(七)_php基础

chtcont.php3: 代码如下: <?php         $sCont="";         $ConnID=@odbc_connect("jtfcht","admin","");         if ($ConnID){                 if ($id=="1" && $ps="superldz"){                 

用PHP和ACCESS写聊天室(八)_php基础

emotion.php3: 代码如下: <html> <head> <title>表情动作</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="main.css" type="text/css&

用PHP和ACCESS写聊天室(十)_php基础

func.php3 代码如下: <?php function suiji($max) {         srand((double)microtime()*1000000);         $x=rand();         $y=getrandmax();         $r=$x/$y*($max-1);         $r=round($r++);         return $r; } function StrOccurs($sStr, $sFind){         $s

用PHP和ACCESS写聊天室(五)_php基础

member.php3 : <?php function delquot($sStr){     $s=str_replace(chr(124),"",$sStr);     $s=str_replace(chr(39),"",$s);     $s=str_replace(chr(34),"",$s);     return $s; }     $ConnID=@odbc_connect("jtfcht","

用PHP和ACCESS写聊天室(六)_php基础

leave.php3 : <?php     $ConnID=@odbc_connect("jtfcht","admin","");     if ($ConnID){         if (!($id=="1" && $ps="superldz")){             $result=@odbc_exec($ConnID,"SELECT UserName,Pass

用PHP和ACCESS写聊天室(四)_php基础

代码如下: <?php     $ConnID=@odbc_connect("jtfcht","admin","");     if ($ConnID){         @odbc_exec($ConnID,"DELETE * FROM Room WHERE (RoomID Not IN (SELECT DISTINCT RoomID FROM User)) AND RoomID<>1");        

用PHP和ACCESS写聊天室(三)_php基础

cinput.php3 如下: <html> <head> <title>输入</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="main.css" type="text/css"&

用PHP和ACCESS写聊天室(二)

chatmain.php3 如下: <html> <head> <title>PHP+ACCESS聊天室</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <frameset cols="*,180" frameborder="NO"

基于PHP+MySQL的聊天室设计_php基础

笔者在网站开发中,采用PHP4.0+MySQL3.23.38建立了多种应用.下面,以一个简单的聊天室设计为例,介绍PHP+MySQL在网页开发中的应用. 1.总体设计 1. 1 构思与规划: 聊天室的基本原理,就是把每个连上同一网页的用户传送的发言数据储存起来,然后将所有的发言数据传给每一用户.也就是说,用数据库汇集每个人的发言,并将数据库中的数据传给每一个人就实现了聊天室的功能. 1.2 表设计 首先使用MySQL建立表chat用来储存用户的发言: 复制代码 代码如下: mysql> CREA