
April 19th, 2000, 10:40 AM
|
|
Junior Member
|
|
Join Date: Mar 2000
Posts: 4
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
<?php
$conn = mysql_connect("localhost", "root","");
mysql_select_db("test");
if(my_sql_errno()) {
echo mysql_errno().": ".mysql_error()."n";
exit;
}
mysql_close($conn);
?>
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.
Patrick
|