Oct
24
Posted on 24-10-2007
Filed Under (Error Solving) by chintan

It is a solution fatal error “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:

extension=php_mysql.dll

extension=php_mysqli.dll

to the Dynamic Extensions section of php.ini

After that I tried to run a simple program but instead of the fatal error I conventional the following notice ” Notice: Object of class mysql result could not be converted to into in C:\PHP\phpFiles\mysql_up.php on line 15″

Share These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Live
  • StumbleUpon
  • Technorati
  • YahooMyWeb
(0) Comments    Read More   
Post a Comment

You must be logged in to post a comment.