|09-20-2011, 04:04 PM||#1|
Join Date: Sep 2011
Where is my localhost to connected in php file
I am trying to ad a name to Mysql database thru php file with this code
$con=mysql_connect("localhost","root","") or die("problem connecting");
but when I try to open the site from system preferences at web sharing preferences I got the error i created: "problem connected".
so it seems to be that my localhost is somewhere i couldn't located in my php code.
so the line "$con=mysql_connect("localhost","root","") or die("problem connecting");" has somthing wrong
any help please?
Last edited by khsana04; 09-20-2011 at 04:11 PM.
|Display Modes||Rate This Thread|