per contare quanti record ci sono in una tabella..
è accettabile sta roba?
$comandosql2 = "select COUNT( * ) as clientipres FROM $tabclienti";
$vista = mysql_query($comandosql2,$link) or die ("errore ins id");
print clientipres;
per contare quanti record ci sono in una tabella..
è accettabile sta roba?
$comandosql2 = "select COUNT( * ) as clientipres FROM $tabclienti";
$vista = mysql_query($comandosql2,$link) or die ("errore ins id");
print clientipres;
Kalton
-------------------
www.kalton.it - www.kalton.cavarzere.it
non ce l' hai un id?
conta quello : count(id)
Originariamente inviato da asdas
per contare quanti record ci sono in una tabella..
è accettabile sta roba?
$comandosql2 = "select COUNT( * ) as clientipres FROM $tabclienti";
$vista = mysql_query($comandosql2,$link) or die ("errore ins id");
print clientipres;codice:$sql = "SELECT COUNT(*) AS clientipres FROM $tabclienti"; $result = mysql_query($sql); $array = mysql_fetch_array($result); print $array['clientipres'];