#native_company# #native_desc#

Storing Data in the Client Page 3

By PHP Builder Staff
on July 30, 2000

PHP & JavaScript World Domination Series: Storing data in the client.


Please create a test database with mysql (mysqladmin create testbase) and then
create a table with:

create table testeable (
  timestamp datetime,
  message	text

This is the “master” file:

lines=new Array();
function displaymsgs() {
  for(i=0;i<lines.length;i++) {
<frameset cols="1" rows="20,60,20" border="0">
<frame name="loader" src="loader.php">
<frame name="display" src="display.php">
<frame name="form" src="form.php">

Note that we have the loader frame, the display frame and a new frame called “form”, this
is the form we use to send messages to the chat room.
Note the simple “display” function, you can use whatever you want here, colors, dynamic
colors, user preferences, html tables, images, etc etc.

The display frame is:


We promised it will be short 🙂