Page 1 of 1

Database and script won't mate

Posted: Thu Sep 24, 2009 4:58 pm
by Brocberry
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\deletejoke\index.php on line 25"

Line 25 looks like this
:$link = mysqli_connect('localhost', 'root', 'password');

(I have deleted the semi-colon before extension=php_mysqli.dll)

(I'm new to databases btw)

Thanks for any suggestions.

Re: Database and script won't mate

Posted: Thu Sep 24, 2009 4:59 pm
by jackpf
Do you have php_mysqli.dll or php_mysqli.so in your php ext dir?

Re: Database and script won't mate

Posted: Thu Sep 24, 2009 5:42 pm
by Brocberry
It's dll, but what's the difference? :D

I turned mysql off in the control panel >services, and then restarted my pc and mysql, and it's ok it seems. So I'm ok I think! 8O

Re: Database and script won't mate

Posted: Fri Sep 25, 2009 4:15 am
by jackpf
Nothing, it just depends if you're on windows or *nix.

Cool :) Nice one.