Your Ad Here

 Navigation
Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




 Sponsors
 Links
dvd information
wwwstores
software directory
 Downloads
 Misc
Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


Log Stats part 1


Log Stats

In this example we will log some user stats in a database and then display the resulting info on a seperate page . Firstly we need to create our database .

CREATE DATABASE stats;

Now we select this database

USE stats;

And now we create our table called stats.

CREATE TABLE stats (
id int DEFAULT '0' NOT NULL auto_increment,
browser varchar(255) NOT NULL,
ip varchar(15) NOT NULL,
recieved logdate NOT NULL,
PRIMARY KEY (id)
);

Now we shall check that we have created the table properly by typing the following

DESC stats;

This is what you should see in your MySQL client window (Windows).



In the next part of this tutorial / script we will show you how to add data in to the database

Goto PART 2




Books
 Sponsors
 Random Code
Atomic time(date and time)
foreach example(beginner)
word count example in php(string)
 Random Article
  Network
Programming resources
Tutorials directory
Hosting resources
ASP site
Domain names
Progged
Maxi directory
bigarticle : free articles
A Code
Code N Tutorials




beginners PHP Copyright © 2004 onwards by beginnersPHP.