mysql 聊天室 聊天室php mysql 六

2021-10-19 18:36:12 字數 3690 閱讀 5492

聊天室php&mysql(六)

#  相應的  資料庫

# phpmyadmin mysql-dump

# # 主機: localhost:3306 資料庫 : study28

# 資料表的結構 'chat_user'

create table chat_user (

userid varchar(20) not null,

passwd varchar(20) not null,

last_time int(10) default '0' not null,

id varchar(20) not null,

*** varchar(5) not null

# 資料表的結構 'chat_user_list'

create table chat_user_list (

userid int(10) default '0' not null,

passwd varchar(20) not null,

last_time int(10) default '0' not null,

id varchar(20) not null,

*** varchar(5) not null

# 資料表的結構 'private_chat'

create table private_chat (

sender varchar(20) not null,

object varchar(20) not null,

message varchar(255) not null,

r1 tinyint(4) default '0' not null,

r2 tinyint(4) default '0' not null

# 資料表的結構 'user'

create table user (

id varchar(15) not null,

userid varchar(20) not null,

name varchar(20) not null,

passwd varchar(20) not null,

*** varchar(5) not null,

age char(3) not null,

question varchar(20) not null,

answer varchar(20) not null,

birthday varchar(20) not null,

oicq varchar(10) not null,

height varchar(4) not null,

myphoto char(3) not null,

email varchar(20) not null,

homepage varchar(20) not null,

hobby varchar(40) not null,

number varchar(10) not null,

room varchar(20) not null,

department varchar(20) not null,

phone varchar(20) not null,

ready1 varchar(10) not null,

ready2 varchar(10) not null,

ready3 varchar(10) not null,

key id (id, userid)

# 資料表的結構 'user_message'

create table user_message (

userid varchar(20) not null,

object varchar(15) not null,

message varchar(255) not null,

status int(2) default '0' not null,

action1 varchar(20) not null,

color varchar(10) default '0' not null,

row int(10) default '0' not null,

time1 varchar(10) not null,

id int(10) default '0' not null

# 資料表的結構 'user_stus'

基於mysql的論壇(5)...2006-10-10

使用網路位址轉換實現多伺服器負載均衡...2006-10-10

社群(php&&mysql)三...2006-10-10

php 表單驗證實現**,後面都有詳細的說明。最近的php將會讓你學到更多。2009-03-03

生成靜態頁面的php類...2006-11-11

真正物件導向程式設計:php5.01發布...2006-10-10

十天學會php之第九天...2006-10-10

php程式設計網上資源導航...2006-10-10

php 的 __file__ 常量...2007-01-01

第十四節 命名空間 [14]...2006-10-10

聊天室程式

伺服器 include include include include include include include include define servport 8081 伺服器端口號 define bufsize 200 最大傳輸量 int main int args,char argv s...

簡單聊天室

include include include include include include include include include include pthread t thread 2 void send msg void ip msg if connect sockfd,struct ...

聊天室專案

網路程式設計專案要求 一 實現目標 乙個在 linux 下可以使用的聊天軟體,要求至少實現如下功能 1.採用 client server 架構 2.client a 登陸聊天伺服器前,需要註冊自己的 id 和密碼 3.註冊成功後,client a 就可以通過自己的 id 和密碼登陸聊天伺服器 4.多...