文章來源:php世紀網 5 聊天信息的發送、閱讀和回復程序 - shortalk.php require("require.php"); // 判斷用戶是否合法在線的公用程序 ?>
短信息 if($action == "view") { $tmp = mysql_fetch_array(mysql_query("select sender,body,date from forumtalk where id=$talknumber and receiver=$name")); $msg = $tmp[body]; $message = ereg_replace(" ","
",$msg); mysql_query("update forumtalk set readsign=1 where id=$talknumber"); $sendernickname = mysql_fetch_row(mysql_query("select nickname from userinfo where name=".$tmp[sender]."")); ?> 查看短信息 給你[