Грешка: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT @position := @position + 1 AS position, points FROM `users` ORDER BY `poi' at line 1
Заявка: $top = mysql_query("SET @position := 0; SELECT @position := @position + 1 AS position, points FROM `users` ORDER BY `points` DESC")
or die (mysql_error());
$result = mysql_fetch_assoc($top);
$position = $result['points'];
Заявка: $top = mysql_query("SET @position := 0; SELECT @position := @position + 1 AS position, points FROM `users` ORDER BY `points` DESC")
or die (mysql_error());
$result = mysql_fetch_assoc($top);
$position = $result['points'];