[PHP] pobierz, plaintext <?php$result = mysql_query('SELECT COUNT(*) FROM tabela');if (!$result) { exit('Błąd:');}?>[PHP] pobierz, plaintext
[PHP] pobierz, plaintext <?php$result = mysql_query('SELECT COUNT(pole) FROM tabela');$row=mysql_fetch_array($result); echo "ile: ".$row[0]; //lub echo "ile: ".mysql_num_rows($result);?>[PHP] pobierz, plaintext
[PHP] pobierz, plaintext <?php$sql = "SELECT COUNT(*) FROM table";$result = mysql_query($sql);$num = mysql_result($result, 0);echo $num;?>[PHP] pobierz, plaintext