Re: [PHP] Problem in mysql connection

2002-01-27 Thread Rio Uniwaly
first, u have to install the mysql. :-) and u have to know your mysql password... maybe you can try this... $connection=mysql_query("localhost","root",""); if ($connection) { echo "Connection to mysql Good"; } else { echo "Connection to mysql Failed"; } hope this can help u.. Rio Uni

[PHP] Problem in mysql connection

2002-01-25 Thread Uma Shankari T.
Hello, I have installed php4 rpm in my machine.while connecting php with mysql it is giving fatal error.I have given like this mysql_connect("$servername","$username","$password"); Why it is so .. Is there any other files i have to install to access the database?? Regards, Uma

Re: [PHP] Problem in mysql connection

2002-01-25 Thread Jeff Sheltren
What was the error message given? Are you sure that mysql is running and working properly? Jeff > Hello, > > I have installed php4 rpm in my machine.while connecting php with > mysql it is giving fatal error.I have given like this > > mysql_connect("$servername","$username","$password"); >

[PHP] Problem in mysql connection

2002-01-25 Thread Uma Shankari T.
Hello, I have installed php4 rpm in my machine.while connecting php with mysql it is giving fatal error.I have given like this mysql_connect("$servername","$username","$password"); Why it is so .. Is there any other files i have to install to access the database?? Regards, Uma