Cant connect to server

Status
Not open for further replies.

cyeclawspy14

New Member
Messages
3
Reaction score
0
Points
0
Sirs/ Madam:

Am have problem on one of my script Which i cant connect my sever here is my code:

<?php
$connect = mysql_connect("chopin","cyrus","(here is my password)") or die ("Cant Connect to host");
mysql_select_db("cyrus_mynook",$connect ) or die("Cant Connect to DB");

?>

and here is my error:

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'chopin' (1) in /home/cyrus/public_html/script/connect.php on line 2
Cant Connect to host


Please help me

Cyrus Landoy
cyeclawspy@gmail.com
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
Hello,

Use "localhost" as the hostname
 
Status
Not open for further replies.
Top