I try the tutorial on net to build chat room.
First I create a database in MYSQL called chatroom and buld a datasheet called chat with three columns:chtime, nick, words.
Then I write four PHP files, login.php, main.php, display.php, speak.php but encounting problem about display and speak. My speak doesn’t work and I just pop up a new window without any words.
I don’t know where is the problem?
I have tried to fix it several days but in vain. Where is my error?
The following is my code:
Login.php
http://codepad.org/WIfr3quz
Main.php
http://codepad.org/b9pXuNl0
Display.php
http://codepad.org/o7pf5G57
Speak.php
http://codepad.org/wFDEMrNk
MAKE SURE YOU READ UP ON SQL INJECTION
Where is
$wordsdefined?You should so something to define these. Not sure what else to tell you without seeing what kind of errors show up.. This is where i would start though.. make the block look something like