Quick Search for:  in language:    
Creates,PHPMySQL,Script,Simple,Login,System
   Code/Articles  |  Newest/Best  |  Community  |  Jobs  |  Other  |  Goto  | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
PHP Stats

 Code: 107,779. lines
 Jobs: 40. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login





Latest Code Ticker for PHP
Click here to see a screenshot of this code!Debug Window
By Hohl David on 12/30

(Screen Shot)

Click here to see a screenshot of this code!Add Google search technology to your site without Google branding.
By Sean Cannon on 12/29

(Screen Shot)

PHP System Function
By Ruben Benjamin on 12/29


Click here to see a screenshot of this code!MySQL GuestBook 1.0
By Uis on 12/27

(Screen Shot)

Click here to see a screenshot of this code!MySQL Guestbook
By Uis on 12/27

(Screen Shot)

Click here to see a screenshot of this code!MySQL Guestbook
By Uis on 12/27

(Screen Shot)

Click here to see a screenshot of this code!PHP Chat
By Kevin Harris on 12/25

(Screen Shot)

Preload whole directory of images
By Roland Osbeck on 12/23


Sessions
By Michael 'plasma' McMullen on 12/23


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

PHP/MySQL Login Tutorial

Print
Email
 
winzip icon
Submitted on: 11/9/2003 9:28:52 PM
By: Tim Atchley 
Level: Beginner
User Rating: By 3 Users
Compatibility:PHP 4.0

Users have accessed this code 3165 times.
 

(About the author)
 
     Creates a PHP/MySQL Script for a Simple Login System.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
11/9/2003 9:31:16 PM:Tim Atchley
This is my first code i've summited to 
pscode.com. How do you guys like it?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/9/2003 9:37:16 PM:Tim Atchley
I would like to appologize for the bad 
presentation.  I meant to do it on this 
but I couldn't get it working right.  I 
know every thing on the tutorial is 
probly missspelled too :-( sorry
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/20/2003 3:42:10 PM:davidk
Great Tutorial! Perhaps a little help 
here and there, but i really think it's 
OK! (this will be help ful with my 
upcoming portal script)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/22/2003 11:09:14 AM:Tim Atchley
It is very messy.  I'm well aware of 
that.  I plan to make an updated 
version some day.  Any ways... Please 
read this below.  
Here is set up 
for my SQL Database.  (Create a new 
.php file called 
install.php):
<?php
@mysql_connect
($dbserver, $dbusername, $dbpassword) 
or die("MySQL error : 
".mysql_error()."<br>");
$query = 
"INSERT INTO newsta_login (username, 
password) VALUES('##YOUR USERNAME##', 
'##YOUR 
PASSWORD##')";
mysql_query($query);
?>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/22/2003 11:12:08 AM:Tim Atchley
Above At the top after the "<?php " add 
"include("config.php");" on a new line. 
 Sorry about that :-P
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/25/2003 11:52:52 PM:Kevin Harris
This was a very good tutorial.  I just 
started learning PHP about two weeks 
ago, and this really helped me out.  I 
only have 2 source code submissions, 
but this really helped me out in 
learning PHP/MYSQL integration.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | PHP Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.