Errores solucionados
This commit is contained in:
parent
fa2f629c73
commit
cfedf3d1b8
|
@ -23,9 +23,9 @@ class Conn
|
||||||
function open ($host, $user, $pass, $name, $port = NULL)
|
function open ($host, $user, $pass, $name, $port = NULL)
|
||||||
{
|
{
|
||||||
$conn = $this->conn = mysqli_init ();
|
$conn = $this->conn = mysqli_init ();
|
||||||
$conn->options (MYSQLI_READ_DEFAULT_FILE, __DIR__.'/my.cnf');
|
|
||||||
$conn->options (MYSQLI_OPT_LOCAL_INFILE, TRUE);
|
$conn->options (MYSQLI_OPT_LOCAL_INFILE, TRUE);
|
||||||
@$conn->real_connect ($host, $user, $pass, $name, $port);
|
$conn->options (MYSQLI_READ_DEFAULT_FILE, __DIR__.'/my.cnf');
|
||||||
|
$conn->real_connect ($host, $user, $pass, $name, $port);
|
||||||
|
|
||||||
if (mysqli_connect_errno ())
|
if (mysqli_connect_errno ())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue