| You are here: | About>Computing & Technology>PHP / MySQL> Step By Steps> Login PHP Script - Login PHP - Free Login PHP Script |
![]() | PHP / MySQL |
Using PHP With MySQLUsing PHP with MySQLStoring Form Data in MySQLStoring PHP Code in MySQL Join UsPHP Login ScriptThe DatabaseWe are going to create a simple login system using PHP code on our pages, and a MySQL database to store our users information. We will track the users who are logged in with cookies. Before we can create a login script, we first need to create a database to store users. For the purpose of this tutorial we will simply need the fields "username" and "password", however you can create as many fields as you wish. CREATE TABLE users (ID MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(60), password VARCHAR(60))This will create a database called users with 3 fields: ID, username, and password.
Previous | Next >> Using PHP With MySQLUsing PHP with MySQLStoring Form Data in MySQLStoring PHP Code in MySQL Join Us |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


