Quote:
Originally Posted by sweet92
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
then i tried to make checklogin.php
|
Why not keep the code in the same page as the form?
Quote:
Originally Posted by sweet92
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
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!

)