Home > Backend Development > PHP Tutorial > Implementation ideas and three core procedures for simulating OICQ - it is recommended to join the highlight area_PHP tutorial

Implementation ideas and three core procedures for simulating OICQ - it is recommended to join the highlight area_PHP tutorial

WBOY
Release: 2016-07-13 17:24:46
Original
908 people have browsed it

Article source: php Century Network 5 Chat message sending, reading and replying program - shorttalk.php require("require.php"); // 判断用户是否合法在线的公用程序 ?>

Short message 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]."")); ?> View text message
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template