Jump to content


Photo

How to host a php website?


  • Please log in to reply
2 replies to this topic

#1 saleemshehzad

saleemshehzad
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 03 August 2006 - 10:36 AM

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

#2 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 03 August 2006 - 10:38 AM

shared hosting connection is normally like this

$db = mysql_connect("localhost","account_username","password");
mysql_select_db("account_db",$db);
Tell me the problem, I will try tell you the solution

#3 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 03 August 2006 - 11:43 AM

Have you tried using the technical support that comes with the hosting site? That's the first place you should ask.

Ken




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users