denny911 Posted August 28, 2007 Share Posted August 28, 2007 Hello,my problem is probably related to a Windows Vista issue with MySQl and/or PHP. I have PHP working fine, but when i decided to install MySQL as well, a problem appeared.It won't connect to a database. The error is:Fatal Error: Call to undefined function: mysql_connnect() in [path/of/my/connection]Everything is just fine with the code of my connection and everything else. It's the site i was working on my other machine, so it should work on any other machine as well.Any ideas?Thanks Link to comment Share on other sites More sharing options...
spoonraker Posted August 28, 2007 Share Posted August 28, 2007 sounds like a problem with your php installation since it's not recognizing mysql_connect() as a valid function Link to comment Share on other sites More sharing options...
Synook Posted August 29, 2007 Share Posted August 29, 2007 Lol it is a spelling mistake: mysql_connnect() ... there are one too many "n"s. Link to comment Share on other sites More sharing options...
denny911 Posted August 31, 2007 Author Share Posted August 31, 2007 Lol it is a spelling mistake: mysql_connnect() ... there are one too many "n"s.not really (that piece of code wasn't copied and pasted, i typed it).. my PHP module wasn't compiled with mySQL extension, but only with mySQLi.. that caused the problem. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 31, 2007 Share Posted August 31, 2007 PHP5 does not enable the mysql extension by defualt, you can enable it yourself if you want to use it. You can enable it in the php.ini file. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.