Hi Guys,
Could you please have a quick look at this. I'm trying to get the users login details form the database using $SETTINGS[“admin_username”] and also the password. I have defined them as ‘user’ (for username) and pass (for password) but I want them to be pulled from database table “userLogin”…. Any ideas? Please help, i have tried every thing but its either the page doesnt open or the it doesnt work at all
<?php
error_reporting(0);
$SETTINGS["admin_username"]='user';
$SETTINGS["admin_password"]='pass';
$SETTINGS["mysql_user"]='user';
$SETTINGS["mysql_pass"]='pass';
$SETTINGS["hostname"]='localhost';
$SETTINGS["mysql_database"]='db_db';
$SETTINGS["useCookie"]=false; // Save login details in Cookie
$TABLES["UserLogin"] = 'userLogin';
$connection = mysql_connect($SETTINGS["hostname"], $SETTINGS["mysql_user"], $SETTINGS["mysql_pass"]) or die ('request "Unable to connect to MySQL server."'.mysql_error());
$db = mysql_select_db($SETTINGS["mysql_database"], $connection) or die ('request "Unable to select database."');
?>