Dear Sir I have windows XP sevice pack 1 and 2, PHPv5.0.5, Mysql v1. I am working in web design. I am unable to connect to the mysql server. Althought my php files running fine and my mysql server is also running fine. i) i had changed the php.ini-dist file to php.ini. ii)i uncommented the extensions of php_mysql.dll in php.ini file iii)i set the extensions_dir to extension_dir = "D:\PHP\php-5.0.3\ext\" in php.ini file iv)i had copied the libmysql.dll in windows\system32 and windows\system i wrote the following code: <?php $dbhost = "localhost"; $dbusername = "root"; $dbpassword = "admin"; $dbname = "test"; $connect = @mysql_connect ( $dbhost,$dbusername,$dbpassword ) or die ("Could not connect ".mysql_error()); mysql_select_db($dbname,$connect) or die("Could not select database".mysql_error()); ?> but after all these i am still getting the error Fatal error: Call to undefined function mysql_connect() in D:\PHP\teknohub\new.php on line 14 please help me to solve this problem out. Dr. Hassan -------------------------------------------- Hassan Al-Mahdi Associate Lecture Of Computer Science Department of Mathematics and Science Faculty of Petroleum and Mining Engineering Suez Canal University, Suez, Egypt Phone: not available now Email: hassanwesf@xxxxxxxxx Website: http://hassan460.tripod.com --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click.