Your Ad Here

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




 Sponsors
 Links
golfing products
dvd information
gambling sites
 Downloads
dzphp editor
EasyPHP
mysql_phpgenerator
php-studio-trial
phpdesigner_7_2_5
phpMyAdmin-3.4.3.2
/phptriad2-2-1
phpxedit_321
rapidphp 2011
WampServer2.1d-x64
WampServer2.1e-x32
xampp-win32-1.7.4-VC6-installer
xampplite-win32-1.7.3
 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
split text up into different rows and insert into an html table(string)
display wordpress tag cloud(Wordpress)
using the md5 function to encrypt data(beginner)
 Random Article
  Network
Programming resources
Tutorials directory
Hosting resources
ASP site
Domain names
Progged
Maxi directory
bigarticle : free articles
A Code
Code N Tutorials
Get PHP
Programmers help




beginners PHP Copyright © 2004 onwards by beginnersPHP.