Page 1 of 1

Call to undefined function mysql_connect()

Posted: Fri Sep 23, 2005 6:53 pm
by aboonavas
Whenever I try to connect to my MYSQL db, the following error is diplayed.

Call to undefined function mysql_connect() in h:\Inetpub\wwwroot\cart\includes\database\mysql.php on line 13


PHP is installed in my machine. Please advice ASAP.

Posted: Fri Sep 23, 2005 6:55 pm
by feyd
Let me guess.. freshly installed PHP 5. PHP 5 does not come with MySQL built-in anymore. You will either need to modify your php.ini to load the module. If this is on a Windows machine and you installed via the installer, you need to download the full size zip and pull out the modules from it (at the least) to get them.

Re: Call to undefined function mysql_connect()

Posted: Tue Sep 27, 2005 6:03 am
by omega-systems
Check all parameters of mysql_connect() function. mysql_connect(server, user, password), where server - MySQL server IP, username - name of the user that owns the MySQL server process and password - password of this user.

Posted: Tue Sep 27, 2005 6:45 am
by feyd
incorrect arguments wouldn't create an undefined function situation.