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 Link to comment https://forums.phpfreaks.com/topic/16437-how-to-host-a-php-website/ 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); Link to comment https://forums.phpfreaks.com/topic/16437-how-to-host-a-php-website/#findComment-68439 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 Link to comment https://forums.phpfreaks.com/topic/16437-how-to-host-a-php-website/#findComment-68469 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.