This is my connection code: I don't have any connection problems with the rest of queries:
<?php # FileName="WADYN_MYSQLI_CONN.htm" # Type="MYSQL" # HTTP="true" $hostname_mysqli_conn = "localhost"; $database_mysqli_conn = "gallery"; $username_mysqli_conn = "root"; $password_mysqli_conn = "root"; @session_start();
$mysqli_conn = mysqli_init(); if (defined("MYSQLI_OPT_INT_AND_FLOAT_NATIVE")) $mysqli_conn->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, TRUE); $mysqli_conn->real_connect($hostname_mysqli_conn, $username_mysqli_conn, $password_mysqli_conn, $database_mysqli_conn) or die("Connect Error: " . mysqli_connect_error());
?>
In the file DataBase.php you use mysql_connect() in line 483 |
|
|