есть ошибка
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result
и запрос
$match = mysql_result(mysql_query("SELECT * FROM `_prognosis_rate` where `refid`='" . $res['id'] . "' AND `user_id` = '" . $user_id . "'"), 0);