I am in a trouble, and i cannot fix the problem. In my php.ini file
are enabled. but when i try to connect to database writing mysql_connect the browser displays the followinf error:Fatal error: Call to undefined function mysql_connect() in D:\server\www\msql.php on line 2. And when i open phpinfo, it doesnt show any mysql information. I use php5 and MySQL 4.1.
Any help is appreciated
OS is Windows 2000, Server Apache in one computer, in another Windows XP, Server ISP, the PHP code is as follows:
$con = mysql_connect("localhost","root","");
die('Could not connect: ' . mysql_error());
}if (mysql_query("CREATE DATABASE my_db",$con))
echo "Database created";
echo "Error creating database: " . mysql_error();
I solved this problem, namely i was helped. Download Mysql Query Browser, then run Mysql command line client, enter mysql -p, enter password,the
write set old_passwords=on, try yr php script again it should work.