Welcome Guest, Not a member yet? Register   Sign In
Call to a member function real_escape_string() on boolean
#4

You can use this to test your MySQL connection, do not leave this on a live server...

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.
 */
$conn mysqli_connect("localhost""root""password");
 
// Check connection
if ($conn === false)
{
 
   exit("ERROR: Could not connect. " mysqli_connect_error());
}
 
// Print host information
echo "Connect Successfully. Host info: " mysqli_get_host_info($conn);

?>
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Call to a member function real_escape_string() on boolean - by InsiteFX - 11-09-2017, 03:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB