Hai all, I need some help from u all. the data base of my application is working i local.but when i hosted in the server ,its giving some problem.
tell me wht will be the error when trying to connect a database in serve.
waiting for reply
can you post some more info?
$db=mysql_pconnect ("localhost", "$user", "$pass");
if(!$db) { echo ("I cannot connect to the database because: " . mysql_error()); }
//codelancer
and on the remote server, is the db local? or is the db on another sever? if its on another server, you will need to specify that as the host.