thanks for your advice.
i have taken out the http:// before i put the message on the forum. i have managed to get the connection with mysql db server now.
however, i have got the problem with the db connection.
the following is my code:
$connection = mysql_connect("hostname","","") or die("sorry, can't connect server! please try again later.");
$db = mysql_selectdb("test") or die("can't connect db! please try again later.");
$sql = "SELECT * FROM tablename";
$result = mysql_query($sql,$connection) or die("couldn't execute query, db problem??");
i have been getting the message that i set up in the code : "can't connect db! please try again later."
it has been working in the morning, and suddenly, it lost the connection with the db.
until now i can't get any connection back with the db. (note that i don't have support from the hosting company).
please give me some advice asap!! thank you very much for your help!!
🙂)
swan