żeby określić ilość to LIMIT x
Jak mam zrobić żeby pobrało mi losowo z bazy 5 rekordów z warunkiem??bo...
$defenders=mysql_query("SELECT * FROM `players` ORDER BY RAND() LIMIT 5 WHERE `guild`=".$_GET['d']) or die (mysql_error());
takie cos wywala mi błąd
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 'WHERE `guild`=10' at line 1
jakaś literówka
