PDA

View Full Version : Fatal error: Call to undefined function mysql_connect()


0r0chimaru
05-09-2007, 12:45 AM
Hello,

im new in PHP and mysql

currently, im using PHP 5, apache 2, and mysql 5

im trying to create my first connection to mysql using PHP

but i got an error, says Fatal error: Call to undefined function mysql_connect()

anyone how to fix this? i already googled it, but still cannot solve the problem

Thank you

guelphdad
05-09-2007, 01:32 AM
put this in a PHP file

<?php
php_info()
?>


put that into your web directory and open the file in your browser.

If you do not see a specific area for mysql with all the info on the database, then it is not being recognized by php.