MySQL Forums
Forum List  »  PHP

Fatal error: Call to undefined function mysql_connect()
Posted by: christos koursaros
Date: June 24, 2006 06:38AM

Hi All,

I am new in PHP and MySQL so I would appreciate it a lot if you could help me! My problem is that at first I had a "Fatal error: Call to undefined function mysql_connect()" I tried to solve that by following those steps :

1. Made sure "c:\php" is in the PATH string
2. Put "libmySQL.dll" in the "c:\php" directory
3. Set: extension_dir = "c:\php\ext" (which is where "php_mysql.dll" and "php_mysqli.dll" are) in the "Paths and Directories" Section of php.ini
4. Enabled those DLL's by adding:
to the Dynamic Extensions section of php.ini

After that I tried to run a simple program but instead of the fatal error i received the following notice " Notice: Object of class mysqli_result could not be converted to int in C:\PHP\phpFiles\mysql_up.php on line 15"

I would be very gratefull if you could help me with that!!!

Options: ReplyQuote

Written By
Fatal error: Call to undefined function mysql_connect()
June 24, 2006 06:38AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.