ED_Case
12-08-2006, 02:00 AM
Hi All, Im just after installing a login script & creating database etc im working with this script MoJT Login System can be found http://sourceforge.net/projects/mojt-ls/ here its free the probelm is when i try to connect i get errors on lines 33 & 34 which are the last two lines of code if anyone can help me with this would be great thx.
// File: db_connect.php
// Desc: Use to connect with database
include("mojt_db.php");
define("HOST", "$db_host"); // define host name (default: localhost)
define("USER", "$db_username"); // define database username
define("PASSWORD", "$db_password"); // define database password
define("DATABASE", "$db_name"); // define database name
$db=mysql_connect(HOST, USER, PASSWORD); // connecting to the database
mysql_select_db(DATABASE, $db);
?>
// File: db_connect.php
// Desc: Use to connect with database
include("mojt_db.php");
define("HOST", "$db_host"); // define host name (default: localhost)
define("USER", "$db_username"); // define database username
define("PASSWORD", "$db_password"); // define database password
define("DATABASE", "$db_name"); // define database name
$db=mysql_connect(HOST, USER, PASSWORD); // connecting to the database
mysql_select_db(DATABASE, $db);
?>