ciao a tutti
per fare il ciclo while faccio cosi
e funziona mi stampa tutto, però se non trova righe vorrei dare un msg di errore come potrei fare?Codice PHP:
<?php
$sql_check = mysql_query("SELECT * FROM tab");
while($row = mysql_fetch_array($sql_check)) {
echo $row['nome'];
}
?>
devo per forza usare mysql_num_rows ? e quindi fare un if mysql_num_rows== 0 ecc ecc ?