Thread: Make Login Page
View Single Post
freecrm
x10 Lieutenant

freecrm's Avatar

Join Date: May 2008
Posts: 306
Credits: 1,313
freecrm will become famous soon enough
Location: UK

Quote  
10-07-2008, 03:34 PM
Re: Make Login Page

Quote:
Originally Posted by sweet92 View Post
firstly i made the file loginpage.php , not sure if the code is important for this bit but ill add just in case
no problems with the form.
Quote:
Originally Posted by sweet92 View Post

then i tried to make checklogin.php
Why not keep the code in the same page as the form?
Quote:
Originally Posted by sweet92 View Post
PHP Code:
$username=""// Mysql username <<Unsure about this bit 
username is usually a mixture of your main account name and your db username (yourmainusername_databaseusername)

Quote:
Originally Posted by sweet92 View Post
PHP Code:
// Connect to server and select databse.
mysql_connect("$host""$username""$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB"); 
Try to use the MySQL error function wherever possible - it will help you loads...

PHP Code:
or die(mysql_error()) 
Try getting the connection first...

There are a few people on here that will try to help as much as possible (for some strange reason! )
__________________
Rich

If you liked this post, please give me +rep or donate credits.

My Site:
Reply With Quote
freecrm is offlineReport Post