function __construct() {
$this->open_connection();
$this->magic_quotes_active = get_magic_quotes_gpc();
$this->real_escape_string_exists = function_exists("mysqli_real_escape_string");
}
and
function loadResultList( $key=” ) {
$cur = $this->executeQuery();
$array = array();
while ($row = mysqli_fetch_object($cur)) {
if ($key) {
$array[$row->$key] = $row;
} else {
$array[] = $row;
}
}
what I know is:
Deprecated: Function get_magic_quotes_gpc() is deprecated on line 14
mysqli_free_result() expects parameter 1 to be mysqli_result, bool given on line 59 and on line 66
error online 62
I’m new to php, if anyone can help
I have already switched to several versions of PHP and MySQL
New contributor
Alane C DM is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.