Jump to content

Archived

This topic is now archived and is closed to further replies.

saleemshehzad

How to host a php website?

Recommended Posts

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

Share this post


Link to post
Share on other sites
shared hosting connection is normally like this

$db = mysql_connect("localhost","account_username","password");
mysql_select_db("account_db",$db);

Share this post


Link to post
Share on other sites
Have you tried using the technical support that comes with the hosting site? That's the first place you should ask.

Ken

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.