В принципе всё работает, но - обратил внимание что в логах идёт запись про ошибку.
[Thu May 11 02:30:01 2017] [error] [client] PHP Strict Standards: Resource ID#29 used as offset, casting to integer (29) in /var/www/.../db/mysql.php on line 186,
[Thu May 11 02:30:01 2017] [error] [client] PHP Strict Standards: Resource ID#29 used as offset, casting to integer (29) in /var/www/.../db/mysql.php on line 187,
собственно строки из db/mysql.php
строка 186 $this->row[$query_id] = @mysql_fetch_array($query_id);
строка 187 return $this->row[$query_id];
function sql_fetchrow($query_id = 0)
{
if(!$query_id)
{
$query_id = $this->query_result;
}
if($query_id)
{
$this->row[$query_id] = @mysql_fetch_array($query_id);
return $this->row[$query_id];
}
else
{
return false;
}
}
само sql_fetchrow
$sql = "SELECT *
FROM phpbb_table WHERE name='$name'";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'ERROR_42');
}
if ( $row = $db->sql_fetchrow($result) )
{
$user_name=$row['username'];
$user_id=$row['user_id'];
}