FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Help Simple PHP Problem





guissmo
Code:

<?php
$dbhost = 'localhost';
$dbuser = 'guissmo_user';
$dbpass = 'pazzword';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');

$dbname = 'guissmo_kwento';
mysql_select_db($dbname);
?>


I'm relatively new to PHP, but what is wrong with this?
I've set up the database in the control panel.
The error is:

Code:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'guissmo_user'@'localhost' (using password: YES) in /usr/home/guissmo/domains/guissmo.frih.net/public_html/kwento/open.php on line 6
Error connecting to mysql
rvec
you used the wrong username or password
Marston
I doubt that pazzword is your real password for that mysql account, however if it is, i would scramble that particular line in the code if you're going to post in on the forum (in the future).
silverdown
Try using this as an example and it also might help you, actually the entire site is useful
http://w3schools.com/php/php_mysql_connect.asp
Related topics
simple php problem, please help...
Simple PHP Navigation
IIS, PHP and Tomcat not cooperating!
help with php
A PHP problem !
Simple PHP forum code needed!
I need a VERY simple php script
another simple php request
Need Help integrating php variable into mySQL SELECT query
Anyone care to help me with a simple PHP Form ?
Need help on PHP programming....
Could there be a PhP problem on the server?
need help in a simple php register script based on flat file
Any one can help 4 PHP object coding self learning site?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.