thanks i did manage to create a database table but having problem now with line 10
10. the part that I got wrong a few times is that I put in the wrong information for the $hostname_localhost and $username_localhost
--------------------------
I am using a wamp server and at the mo my web address is localhost/
so is it that what i put in $hostname_localhost
I used admin as a user name and password in wa globals is that what i need to put in here
$username_localhost = "admin";
$password_localhost = "admin";
bernd is the name of my database i created in php admin
so is the code underneath ok then ?
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "bernd";
$username_localhost = "admin";
$password_localhost = "admin";
do i edit the part underneath as well?????
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>
I keep getting this error msg ;
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\hfsss\Connections\localhost.php on line 9
Fatal error: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\hfsss\Connections\localhost.php on line 9