Do you see any problem with this code?
[php]<?php
$con = mysql_connect(“localhost”,“vamadisz_site”,“pass”);
if (!$con)
{
die('Adatbáziskapcsolódási hiba: ’ . mysql_error());
}
mysql_select_db(“vamadisz_main”, $con);
?>
[/php]
I get the error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘vamadisz_site’@‘localhost’ (using password: YES) in /home/vamadisz/public_html/hu/index.php on line 35
I have a db user vamadisz_site and it is connected to the db vamadisz_main. Thanks for helping.