April 19th, 2000, 10:40 AM
Join Date: Mar 2000
Time spent in forums: < 1 sec
Reputation Power: 0
When I try to execute the following php code to connect to my database using php 4.0
$conn = mysql_connect("localhost", "root","");
echo mysql_errno().": ".mysql_error()."n";
I get the following error meesages
"Fatal error: Call to undefined function: mysql_connect() in C:Inetpubwwwroottest.php on line 10"
MySQl works perfectly on commandline but does not work from within my code. I have uncommented mysql's dll in my php.ini.
Could someone help .
How do I make PHP work with mysql? Can someone help.