Database and script won't mate

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Brocberry
Forum Newbie
Posts: 6
Joined: Fri Aug 28, 2009 4:25 am

Database and script won't mate

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Database and script won't mate

Post by jackpf »

Do you have php_mysqli.dll or php_mysqli.so in your php ext dir?
Brocberry
Forum Newbie
Posts: 6
Joined: Fri Aug 28, 2009 4:25 am

Re: Database and script won't mate

Post 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
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Database and script won't mate

Post by jackpf »

Nothing, it just depends if you're on windows or *nix.

Cool :) Nice one.
Post Reply