聊天室phpamp;amp;amp;mysql(五)

第五个页面name=changenick.php ?include ../signup/mysql.php; //echo
$userid; if($action==ok) { $sql=select * from chat_user_list where
userid=’$nick’; $result=mysql_query($sql) or die(mysql_error());
if(澳门新葡萄京娱乐场 ,!$result) echo 该呢称已被他人占用 请重新填写; else{ $sql=update
chat_user_list set id=’$nick’,passwd=’$passwd’,sex=’$sex’ where
userid=’$userid’; $result=mysql_query($sql)or die(mysql_error());
$sql=update chat_user set id=’$nick’,passwd=’$passwd’,sex=’$sex’ where
userid=’$userid’; $result=mysql_query($sql)or die(mysql_error()); }
if($result){ echo script language=’JavaScript’ window.close() /script; }
} ? html head title:::FEIT聊天室:::/title meta 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 body bgcolor=#ffffff
text=#000000 div id=Layer1 style=position:absolute; left:40px;
top:28px; width:293px; height:202px; z-index:1; background-color:
#6699FF; layer-background-color: #6699FF; border: 1px none
#000000/div div id=Layer2 style=position:absolute; left:144px;
top:54px; width:126px; height:70px; z-index:2form name=form1 method=post
action=?echo $PHP_SELF??action=ok pinput type=text name=nick size=12
maxlength=20 /p pinput type=text name=passwd size=12 maxlength=20 input
type=hidden name=userid value=?echo $userid ;? /p pselect name=sex
option value=帅哥帅哥/option option value=妹妹美眉/option /select /p p
input type=submit name=ok value=更改 align=center /p /form /div div
id=Layer3 style=position:absolute; left:72px; top:58px; width:72px;
height:20px; z-index:3用户呢称/div div id=Layer4
style=position:absolute; left:72px; top:99px; width:71px; height:23px;
z-index:4用户密码/div div id=Layer5 style=position:absolute; left:82px;
top:139px; width:58px; height:20px; z-index:5性别/div /body /html

//此页面为look.php ? include signup/mysql.inc; $sql=select * from
.$table. where id=’$id’; $result=mysql_query($sql)or
die(mysql_error()); $row=mysql_fetch_array($result);
$number=++$row[number]; $sql=update $table set number=’$number’ where
id=’$id’; mysql_query($sql)or die(mysql_error()); ? html head
titlexiaoyang/title meta content=text/html; charset=gb2312 ? include
js/menuhead.php ? 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 body bgcolor=#FFFFFF
text=#000000 ? include js/menu.php; ? div id=Layer6
style=position:absolute; left:409px; top:29px; width:118px; height:17px;
z-index:1/div div id=Layer5 style=position:absolute; left:63px;
top:61px; width:464px; height:303px; z-index:2table width=100% border=1
cellspacing=0 cellpadding=0 bordercolor=#FFCCFF trtd width=22%
height=17div align=centerfont color=#FF3399 size=2题目/font/div /td td
width=78% height=17 div align=centerfont size=2 color=#9966FF?echo
$row[title] ;?/font /div /td /tr trtd width=22% height=24div
align=centerfont color=#FF3399 size=2作者/font/div /td td width=78%
height=24div align=centerfont size=2 color=#9966FF?echo $row[userid]
;?/font /div /td /tr trtd width=22%div align=centerfont color=#FF3399
size=2内容/font/div /td td width=78% div align=leftfont size=2
color=#9966FF? $file=explode(n,$row[content]); $num=count($file);
for($i=0 ;$i$num;$i++) echo .$file[$i].BR;?/font/div /td /tr /table ?
for($j=1;$j6;$j++)//显示回复内容 { $re=r.$j; if($row[$re]) {
$id2=$row[$re]; $sql=select * from bbs_re where id=’$id2′;
$result=mysql_query($sql)or die(mysql_error());
$row8=mysql_fetch_array($result); echo BR; echo table width=100%
border=1 cellspacing=0 cellpadding=0bordercolor=#FFCCFFtr;echo td
width=22% height=17div font color=#FF3399 size=2题目/font/div; echo
/tdtd width=78% height=17; echo div font size=2
color=#9966FF.$row8[title]./font /div/td /trtr;echo td width=22%
height=24;echo div font color=#FF3399 size=2作者/font/div/td; echo td
width=78% height=24;echo div font size=2 color=#9966FF.$row8[userid].
/font /div/td /trtr;echo td width=22%div font color=#FF3399
size=2内容/font/div; echo /td td width=78%; echo div align=leftfont
size=2 color=#9966FF; $file=explode(n,$row8[content]);
$num=count($file); for($i=0 ;$i$num;$i++) echo .$file[$i].BR; echo
/font/div; echo /td/tr/table; } } ? BRBR /div div id=back
style=position:absolute; left:455px; top:30px; width:85px; height:3px;
z-index:3hr color=#ff9999 noshade /div div id=goback
style=position:absolute; left:461px; top:23px; width:120px; height:16px;
z-index:2div align=centera href=php3.php?p=1&&table=?echo $table ;?
target=_self onMouseOver=window.status=”; return truefont size=2
color=#FF33FF返回/font/a/div /div div id=Lay style=position:absolute;
left:70px; top:30px; width:85px; height:3px; z-index:4 hr noshade
color=#ff9999 /div div id=Laye style=position:absolute; left:78px;
top:23px; width:120px; height:16px; z-index:1div align=centera
href=say.php?id1=? echo $id.&&table=.$table ;? target=_self
onMouseOver=window.status=”;return truefont size=2
color=#FF33FF回复/font/a/div /div p/p p/p /body /html

发表评论

电子邮件地址不会被公开。 必填项已用*标注