|
ok i gone onto cpanel creat and new user called ekcab and a new password this is the code i have
<?
define ('DB_USER', 'ekcab');
define ('DB_PASSWORD', '*****');
define ('DB_HOST', 'localhost');
define ('DB_NAME', 'ekcab_usertable');
$adb = mysql_connect (DB_HOST , DB_USER, DB_PASSWORD) or die("Connection Err:".mysql_error());
mysql_select_db (DB_NAME) or die("DB Selection Err:".mysql_error());
$fullname = $_POST["textfield"];
$email = $_POST["textfield2"];
$sql = "INSERT INTO ekcab_usertable (fullname, email) VALUES ('$fullname', '$email')";
mysql_query($sql);
?>
and i get this
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ekcab'@'localhost' (using password: YES) in /home/ekcab/public_html/scub.php on line 16
Connection Err:Access denied for user 'ekcab'@'localhost' (using password: YES)
|