heres my code. i have created a databse called loginsystem and imported a sql file with all tabkles in it.
Code:
<?
// start session
session_start();
// set the PHP SETTINGS such that it does not use SESSIONS with COOKIE support
ini_set("session.use_cookies",0);
// defination of backEnd class
class backEnd {
// database settings
var $DATABASE = 'customin_loginsystem';
var $DB_HOST = 'localhost';
var $DB_USER = 'customin_login';
var $DB_PASS = '********';
// other variables and arrays
var $page_no = 1;
var $no_of_rows = 2;
var $admin_title = ".: Login System : Welcome to Administartion :.";
var $client_title = ".: Welcome to Login System :.";
var $error_msg = "";
var $host_path = "http://waheed/loginsystem/";
var $array_roles = array(
0 => "Administrator",
1 => "Webmaster",
2 => "User");
// connect to MYSQL
function _connect(){
$db_handle = mysql_connect($this->DB_HOST, $this->DB_USER, $this->DB_PASS) or die(mysql_error());
mysql_select_db($this->DATABASE, $db_handle);
return $db_handle;
}
Thanks again for the help