saleemshehzad Posted August 3, 2006 Share Posted August 3, 2006 Hi, I have recently created a site using PHP andMySQL. But when I try to host it on a web hosting server, I created database gave the host in mysql_connect as provided by the hosting server. But when I access the page it gives error "Could not conenct to database". If any body may help me how to itegrate it.Thanks Quote Link to comment Share on other sites More sharing options...
onlyican Posted August 3, 2006 Share Posted August 3, 2006 shared hosting connection is normally like this$db = mysql_connect("localhost","account_username","password");mysql_select_db("account_db",$db); Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 3, 2006 Share Posted August 3, 2006 Have you tried using the technical support that comes with the hosting site? That's the first place you should ask.Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.