WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : A MySQL Driven Chat Script
Categories : PHP, MySQL, Databases
devarticles
devarticles
Date : 2002-01-11
Grade : 0 of 5 (graded 0 times)
Viewed : 4320
Search : More Articles by devarticles
Action : Grade This Article
Tools : My Favotite Articles


  Submit your own code examples 
 


Introduction

One of the most popular uses for the Internet is person-to-person communication. There are many ways that we can communicate with each other online including ICQ, MSN Messenger, forums, Email, mIRC and Java chat applets. If you run a web site, then you should provide your visitors with some sort of communication tool that will allow them to express their opinions on a particular topic, as well as communicate with other people sharing the same interests as them.

In this article, I’m going to show you how to create a quick-n-easy chat script using PHP and a very simple MySQL database. The script will run in a web browser and the chats will be stored in a database. Our script will allow the visitor to choose a nickname, enter text to “send” to the chatting window, and view messages from other people… all in real-time! For a bit of fun, our chat application will also have buttons to send several emote-icons including smiling and frowning faces.

In this article, I am assuming that you know how to create a MySQL database from the command line. I will also assume that you have Apache, PHP and MySQL on the same server running under Windows 2000. If you’re running a Win9x/Unix box, don’t worry…everything is pretty much the same.

Firstly, let’s start by creating the database to store our chat sessions…

Read More...









Date Arithmetic With MySQL
Categories : PHP, Databases, MySQL, Date Time
Saving Images in MySQL
Categories : MySQL, PHP, Graphics, Databases
Beginners guide to PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, Installation
Building A Persistent Shopping Cart With PHP and MySQL
Categories : PHP, MySQL, Databases, Ecommerce
Referer Statistics
Categories : PHP, MySQL, HTTP, Databases
Custom MySQL-functions
Categories : Databases, MySQL, PHP, PHP Functions
User identification using cookies in PHP and MySQL
Categories : PHP, Databases, MySQL, Cookies
Multicolumn Output from a Database with PHP
Categories : PHP, Databases, HTML and PHP, MySQL
Creating an IE-Only Database Driven Menu System With PHP, MySQL and DHTML
Categories : PHP, MySQL, Databases, DHTML
PHP and MySQL News with Comments
Categories : PHP, Databases, MySQL
Practical Date and Time examples with PHP and MySQL
Categories : Databases, MySQL, PHP, Date/time
Time Is Money Part 1 of 2 - Designing and implementing a Web-based application
Categories : PHP, Databases, MySQL, Complete Programs
Descriptions of Common Data Types
Categories : MySQL, Databases, PHP, PHP options/info, General
PHP, MySQL and Authentication 101
Categories : PHP, Databases, MySQL, Authentication
Case Study: Handling MySQL Growth With a PHP Class
Categories : Databases, MySQL, PHP
tvks swamy wrote : 394
Where is the download for source and images?
Boaz Yahav wrote : 395
You should click on "read more" to go to the full article
tvks swamy wrote : 396
I did click read more and navigated to all the pages. The
last sentence which the author had stated in the last page was

"Remember you can download the SQL script, source code and
images by clicking on the “supporting material” link below."

There is neither a link nor a button with the name
supporting material.

What do I do?
Boaz Yahav wrote : 397
You will need to ask devarticles.com cause this article is
hosted on their site. WeberDev is just linking to them.