3 Users appreciate this thread.
Ryan Tutorials: Making a simple but awsome chat 1
HerobrineLuka (2013-06-09 06:24:52)^
Want to stalk me?
Join the Autonic Steam group! Members: 400+
My youtube channel! Subscriber Goal: 1102/10000
Join the Autonic Steam group! Members: 400+
My youtube channel! Subscriber Goal: 1102/10000
NINTENDO64 (2013-06-15 17:35:39)Thanks!
"If today were the last day of my life, would I want to do what I am about to do today?"
-Steve Jobs
DBS
-Steve Jobs
DBS
Log in to submit a comment
Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)
New registered users today: 8
Newest registered user: Dolce21dsisBack
Today, I will show you the way to make a basic chat system.
This Chat Has
- MySQL Support
- PHP Support
- 1 Command
- 1 Icon
Step 1: Create the table in phpMyAdmin
Create the following table:
Table Name: chat
Rows: 3
Column one:
- Name: id
- Type: INT
- Lenght: 10
- Extra: Auto Increment (A_I)
Column two:
- Name: username
- Type: char
- Length: 300
- Extra: None
Column three:
- Name: message
- Type: char
- Length: 250
- Extras: None
Table Colation: utf8_general_ci
Step 2:Create the chat structure
Type the following code in a new file named chat.php:
<?php ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Chat</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=320" /> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> <script type="text/javascript" src="ajax.js"> </script> </head> <body> <div id="top" style="overflow:auto;"> <?php ?> </div> <div id="bottom"> <?php ?> </div> </body> </html> <?php ?>
Note:Steps 3 through 5 will be in another part.