ciao a tutti ho bisogno di una mano per questa funzione che devo portare a php 7.0
questo l'errore che mi restituisce php
PHP Notice: Object of class mysqli_result could not be converted to int in /var/www/html/includes/db.php on line 171
PHP Notice: Object of class mysqli_result could not be converted to int in /var/www/html/includes/db.php on line 172
PHP:
function fetcharray ($query_id)
{
if(!$query_id)
{
$query_id = $this->query_res;
}
if($query_id)
{
//$this->q_array[(int)$query_id] = @mysql_fetch_array($query_id);
$this->q_array[(int)$query_id] = mysqli_fetch_array($query_id); LINEA 171
return $this->q_array[(int)$query_id]; LINEA 172
}
else
{
return false;
}
}
PHP Notice: Object of class mysqli_result could not be converted to int in /var/www/html/includes/db.php on line 171
PHP Notice: Object of class mysqli_result could not be converted to int in /var/www/html/includes/db.php on line 172
Ultima modifica di un moderatore: