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


urgent help





kawkazEE
please help i cannot connect to my host using.

<?php
$host='http://checkitout.fri.net/';
$username='kawkazee';
$password='*****';
$db = 'kawkazee_check';

mysql_connect($host,$username,$password) or die ('Unable to connect:'.mysql_error());

mysql_select_db($db) or die ('Unable to select database:'.mysql_error());
?>

it says Warning: mysql_connect(): Unknown MySQL Server Host 'http' (1)
ninjakannon
Try this:
Code:
<?php
$host='localhost';
$username='kawkazee';
$password='*****';
$db = 'kawkazee_check';

mysql_connect($host,$username,$password) or die ('Unable to connect: '.mysql_error());

mysql_select_db($db) or die ('Unable to select database: '.mysql_error());
?>
Bondings
Just to note that I removed the password for security reasons. If you copy the code that ninjakannon provided, it should normally be working. But don't forget to change the password. Wink
ninjakannon
Bondings wrote:
Just to note that I removed the password for security reasons. If you copy the code that ninjakannon provided, it should normally be working. But don't forget to change the password. Wink

I'm glad you covered that up Bondings Wink

Remember kawkazEE: give out your username and password, and someone's gonna use them Shame on you
Related topics
URGENT help with file
Urgent Help > Serious Virus Infection
*URGENT* Help me Fill This .cgi i dont know what to place.
I am having alot of trouble with forms! Urgent help please!
URGENT! Problem with chmod files.
URGENT HELP NEEDED
Installing GreenStone Digital library on Linux, Help Please
Very Urgent....!!! Help...
Gmail urgent help
Regarding Bookmarking of Sites..Help Needed urgently!!
What is DirectAdmin Account? - Urgent Help Needed
Need urgent help - Joomla got hacked
I think my computer has 2 systems? Very urgent help!!!!
HELP Frihost domain
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.