umekille78 Posted May 12, 2006 Share Posted May 12, 2006 Hi all!Im trying to conect my PHP page3 to an MySQL database. I use the function mysql_connect() like this: $dbHandler=@mysql_connect("localhost","name","pass")or die("No good!"); The problem is that i get a: Fattal error: Call to undefined function mysql_connect()I use PHP 5 on my computer and as far as I can tell that function is sopoused to exist.What to do?? HELP me!! Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 12, 2006 Share Posted May 12, 2006 Remove the @ sign in an instruction that ends with an "or" alternate :)This sign lets PHP ignore any error or warning, so the alternate does not get activated. Link to comment Share on other sites More sharing options...
skym Posted May 12, 2006 Share Posted May 12, 2006 I use PHP 5 on my computer and as far as I can tell that function is sopoused to exist.I never had to install PHP5 yet, but it seems that "MySQL is no longer enabled by default":http://www.php.net/manual/en/ref.mysql.php Link to comment Share on other sites More sharing options...
scott100 Posted May 13, 2006 Share Posted May 13, 2006 I never had to install PHP5 yet, but it seems that "MySQL is no longer enabled by default"<{POST_SNAPBACK}> That's right, that's why i still use php 4 MySQL support built-in Link to comment Share on other sites More sharing options...
umekille78 Posted May 15, 2006 Author Share Posted May 15, 2006 Hi again!I solved this problem my self.It was only to enable a dll file in php.ini No problem att all.Remember to enabel it in the right folder./Per Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now