Quantcast
Channel: MySQL Forums - PHP
Viewing all articles
Browse latest Browse all 938

Trouble Connecting to Database via PHP (14 replies)

$
0
0
Ok so I've got a database with a populated table (just to practice for now)

I'm trying to connect to my mysql database via PHP and have found the code to help me to do just that, but when I try I get this error message on my browser:

Fatal error: Call to undefined function mysqli_connect() in C:\Apache24\htdocs\mysql_connect.php on line 14

I have looked at the specs of the PHP build I have installed and this is the configure command:

cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"

I did install the latest PHP 5.4.12, should this work automatically?

Viewing all articles
Browse latest Browse all 938

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>