PHP code examples with database connectivity

ASP.TheDemoSite.co.uk

PHP code examples with database connectivity
 PHP.TheDemoSite.co.uk

Just examples of PHP code, linking to your MySQL database and JavaScript.
1. Home | 2. The Database | 3. Add a User | 4. Login | 5. Get your db online

PHP code examples with database connectivity

PHP Form Mailer - phpFormMailer (easy to use and more secure than many cgi form mailers)

Need web hosting try: PHP hosting or need to host several domain names? Try Reseller hosting

PHP MySQL auto members area: phpAutoMembersArea (phpAMA)

PHP Job scheduler: phpJobScheduler

download-the-login-demo-pages FREE Download
complete LOGIN
demo pages
of this website
Size: 27 Kbytes

2. The Database

 

The MySQL database used for this example has a simple three field table named members.  The SQL query used to create the table is shown below:

CREATE TABLE members (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
password VARCHAR(12) NOT NULL,
username VARCHAR(12) NOT NULL,
index(password),
index(username))

As can be seen above the "id" is the primary key and is auto incremental.  The "username" and "password" fields are both indexed and must have a value to enter a valid record.  Now add a User to this table.

 

UK managed dedicated servers
No hassle managed dedicated servers
No bandwidth limits
www.S4Servers.com















download-the-login-demo-pages FREE Download
complete LOGIN
demo pages
of this website
Size: 27 Kbytes
download-phpFormMailer FREE Download phpFormMailer
including setup details
Size: 4 Kbytes



TheDemoSite.co.uk is a MySQL database and PHP FREE code example site hosted with:
Seiretto website hosting Copyright © 1996-2008 Seiretto Contact us.  All rights reserved.