Welcome Guest, Not a member yet? Register   Sign In
Getting a blank page
#2

If you think you have a Database connection problem you can use this script to test the connection.

PHP Code:
<?php

/**
 * Attempt MySQLi server connection. Assuming you are running MySQL
 * server with default setting (user 'root' with no password)
 *
 * Change root for username and password for your server.
 */
$link mysqli_connect("localhost""root""");
 
// Check connection
if ($link === false)
{
 
   exit("ERROR: Could not connect. " mysqli_connect_error());
}
 
// Print host information
echo "Connect Successfully. Host info: " mysqli_get_host_info($link);

?>

Place in a file and run it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Getting a blank page - by ThorTheViking - 10-24-2017, 02:56 AM
RE: Getting a blank page - by InsiteFX - 10-25-2017, 03:16 AM
RE: Getting a blank page - by ThorTheViking - 10-25-2017, 08:12 AM
RE: Getting a blank page - by ThorTheViking - 10-25-2017, 11:00 AM
RE: Getting a blank page - by InsiteFX - 10-26-2017, 01:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB