undefined function mysql_connect
Posted by: saifu (---.cmu.carnet.hr)
Date: September 30, 2006 01:35PM

I'm programming a simple poll that connects to the database. When I choose an option from poll.html(calls action poll.php) and submit it, everything works fine(the entry is recorded in the table), but when I debug the script (poll.php) I get error: undefined function mysql_connect....

Can anyone solve this mystery?

Options: ReplyQuote
Re: undefined function mysql_connect
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 30, 2006 06:21PM

you have disabled support for the mysql extension. enable it.

Options: ReplyQuote
Re: undefined function mysql_connect
Posted by: saifu (---.cmu.carnet.hr)
Date: September 30, 2006 11:49PM

Do you mean extension:php_mysql.dll, because in php.ini this option is uncommented, and also, when I call phpinfo(), mysql information is displayed. I also checked if the path to php.ini is correct and it is...Is this all I have to do to enable mysql?

Options: ReplyQuote
Re: undefined function mysql_connect
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: October 03, 2006 02:21AM

left click on the wamp tray icon, and go to extensions and make sure there is a little triangle next to mysql extension. if there is no triangle, then click on it.

Options: ReplyQuote


Sorry, only registered users may post in this forum.