X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=top100.pl;h=9611a17acfd4d6c6e30628b7b0cb041b6dd75c09;hb=191f4e2ff4e447b1219a4d49975a8cbc1039eb65;hp=27219e0e570e995057c7b6ec795433c59f3db7c0;hpb=64df4f268381089651b2067a1c09d22004c4f04b;p=ndwebbie.git diff --git a/top100.pl b/top100.pl index 27219e0..9611a17 100644 --- a/top100.pl +++ b/top100.pl @@ -52,8 +52,8 @@ if (isHC()){ } my $query = $DBH->prepare(qq{SELECT id,coords(x,y,z), ruler, planet,race, size, score, value, xp, sizerank, scorerank, valuerank, xprank - $extra_columns FROM current_planet_stats ORDER BY $order LIMIT 100 OFFSET $offset}); -$query->execute; + $extra_columns FROM current_planet_stats ORDER BY $order LIMIT 100 OFFSET ?}); +$query->execute($offset); my @planets; while (my ($id,$coords,$ruler,$planet,$race,$size,$score,$value,$xp,$sizerank,$scorerank,$valuerank,$xprank ,$planet_status,$hit_us,$alliance,$relationship,$nick) = $query->fetchrow){