
05-23-2017, 11:13 AM
|
|
|
Join Date: May 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by bridge2heyday
I took sometime checking this for a friend
on MYSQLI class I changed the connect function to
PHP Code:
function connect()
{
$this->connection_id = mysqli_connect($this->obj['sql_host'], $this->obj['sql_user'], $this->obj['sql_pass'], $this->obj['sql_database']);
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
}
and at line 186
PHP Code:
$this->query_id = mysqli_query($the_query, $this->connection_id);
connection should be the first parameter on mysqli_connect fuction not second parameter
PHP Code:
$this->query_id = mysqli_query($this->connection_id, $the_query);
it is working fine now
|
Tried these changes but not working
|