Hi everybody, I'm a beginner to php I'm trying to connect to my mysql database but I keep getting a this error:
"Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 2"
I'm not sure exactly whats wrong the code i've been using is
"$link = mysqli_connect('localhost', 'root', 'password');"
It seems you don't have the mysqli extension installed in you PHP installation.
For information on how to install it: http://nl3.php.net/manual/en/mysqli.setup.php
Getting hosting is of no help in setting up your development environment since hosting only provides for your live copy of the site.
my live server is a development environment.
to save your self the headache trying to install PHP / MySQL on your computer
use WAMP or just get hosting for $5 a month.