ciao a tutti
per fare il ciclo while faccio cosi

Codice PHP:

<?php
$sql_check 
mysql_query("SELECT * FROM tab");



while(
$row mysql_fetch_array($sql_check)) {
  echo 
$row['nome'];

}
?>
e funziona mi stampa tutto, però se non trova righe vorrei dare un msg di errore come potrei fare?
devo per forza usare mysql_num_rows ? e quindi fare un if mysql_num_rows== 0 ecc ecc ?