<?phpfunction cantFotosOf($id){ $sql = "SELECT count(*) cant FROM sv_noticias_fotos where id_noticia = $id"; $result = mysql_query($sql) or trigger_error(mysql_error()); $row = mysql_fetch_array($result); return $row[cant];}?>
No hay comentarios:
Publicar un comentario