July 15th, 2000, 04:11 PM
I downloaded the latest beta of mySQL from mysql.com [for windows] and i installed it and ran winmysqladmin.exe as the readme tells me to. I filled the the username/pw and then save and it to the ini and then it runs the mySQL program without a problem. Then i ran mysql.exe to make sure there werent any conflicts or errors, and it worked fine and i made a quick database. But, then when i try to use mysql functions in PHP [any of them], i get the following error..
Fatal error: Call to undefined function: mysql_connect() in Dhpbblah.php3 on line 8
Anyone know why this is happening? I have omni httpd server running, and PHP works fine and the green light on the mySQL admin is green. Any help would be greatly appreciated.
July 15th, 2000, 05:34 PM
You have to enable mysql functions in PHP. There should be a line in php.ini that looks something like:
remove the semi-colon
July 16th, 2000, 12:01 AM
I already had that line in php.ini un commented...anything else that may be causing the problem?
July 18th, 2000, 05:19 AM
I'd been using MySQL 3.22.xx for windows for a little while, and then I thought it'd be cool to upgrade... I'd stay away from the little GUI for the mysqladmin and just run the whole shoot'n match from your DOS CLI. That GUI made it so I couldn't connect either. I just cleaned up what I could, did a re-install (re-unzip ) and never double clicked on anything in the mysqlbin again.