
February 8th, 2013, 10:17 PM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 2
Time spent in forums: 40 m 18 sec
Reputation Power: 0
|
|
|
PHP-DB - Php not recognizing mysqli_connect
Hello,
I'm having a frustrating time trying to find out why php is not connecting to MySQL. Here's what I did;
* installed Apache Web server on a laptop. This is up and running.
* Installed php on the laptop and this is running and configured to Apache. I can bring up a dev website running php.
* installed MySQL database and created tables.
Now I'm trying to connect php to the database and php does not seem to be recognizing mysqli_connect.
I have the following within a php file.
<?php
$link = mysql_connect('localhost', 'root', 'password');
?>
If I view the source code after the page comes up it seems as if the webpage hits this piece of code and stops creating the rest of the page.
Any ideas;
You help is appreciated.
|