Jump to content

[SOLVED] HELP mysqli_connect() problem. Different to the one in the Faq section


xkyogre

Recommended Posts

Whenever I use a mysqli_connect() function in my programs the browser goes blank but when iI take away that function everything else works perfectly.

Why is this happening?

How do I solve it

Add the following two lines of code at the top of the page which gives a blank page:

display_errors('1');
error_reporting(E_ALL);

 

Retest. Do you get any error messages now? If you do post all errors here in full.

The browser window still stays blank when you type in http://localhost/Crime.php

which is the directory of the file.

I tried to add

display_errors('1');

error_reporting(E_ALL);

but nothing changed.

Any more suggestions???

The screen goes blank even if I  make a new document with just mysqli_connect_error() in it.

However, if I put phpinfo() it works fine.

I think its the mysqli functions but I configured php as all the books and tutorials told me.

mysqli_connect,

 

(PHP 5)

 

mysqli_connect, mysqli->__construct() — Open a new connection to the MySQL server

Description

 

http://us.php.net/manual/en/function.mysqli-connect.php

 

Yep only PHP 5 can use mysqli.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.