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
dvd information
programmershelp
finance products
 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!


Storing users contact info


Storing users contact info

This example will show how to create a database , then create a table in this database and then log a users email address and name in the database . This will be the basics of creating a newsletter system using PHP and MySQL.

First of all we will create our database using MySQL , enter the following at the command prompt.

CREATE DATABASE email;
USE email;

CREATE TABLE email(id int DEFAULT'0' NOT NULL auto_increment,
name VARCHAR(75) , email VARCHAR(50),
PRIMARY KEY(id));

Now we will check that everything is Ok by entering the following

DESC email;



That is perfect just what we are looking for , in the next part we will create our form that users fill in and also the script for storing this information in our database.

Back to index , Forward to section 2




Books
 Sponsors


 Random Code
Display the current time(date and time)
Random passwords(randomizing)
Random email addresses(internet)
 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.