Posted By

manec on 01/11/09


Tagged

mysql select count


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

brent-man


select count


 / Published in: SQL
 

  1. mysql_select_db($database_connection, $connection);
  2. $query_anuncios = "SELECT COUNT(id_anuncio) FROM db_anuncios";
  3. $result = mysql_query($query_anuncios);
  4. $count = mysql_fetch_array($result);
  5. <?php echo "$count[0]"; ?>

Report this snippet  

You need to login to post a comment.