kaisellgren
07-11-2006, 07:15 PM
Hi,
Main Code:
$c_hostname = $_POST["c_hostname"];
$c_database = $_POST["c_database"];
$c_username = $_POST["c_username"];
$c_password = $_POST["c_password"];
require("mysql_connect.php");
mysql_connect.php
$link = @mysql_connect($c_hostname,$c_username,$c_password, $c_database) or die("error2.".mysql_error());
@mysql_select_db($c_database,$link) or die("error.".mysql_error());
It gives me errors saying Access denied for user 'ODBC'@'localhost' (using password: NO)
Help?
It seems that mysql_connect.php cannot get the c_ variables? How to do that it can get them?
Main Code:
$c_hostname = $_POST["c_hostname"];
$c_database = $_POST["c_database"];
$c_username = $_POST["c_username"];
$c_password = $_POST["c_password"];
require("mysql_connect.php");
mysql_connect.php
$link = @mysql_connect($c_hostname,$c_username,$c_password, $c_database) or die("error2.".mysql_error());
@mysql_select_db($c_database,$link) or die("error.".mysql_error());
It gives me errors saying Access denied for user 'ODBC'@'localhost' (using password: NO)
Help?
It seems that mysql_connect.php cannot get the c_ variables? How to do that it can get them?