lundi 11 février 2008
Yann Le Neveu, un photographe qui tire le portrait des poètes
Par Delphine Michard, lundi 11 février 2008 à 17:44 :: Auteurs :: 1741 lectures
Vous souhaitez mettre un visage sur un nom ?
class dcExtendedInfo { function getInfo($type='postcount') { global $con; switch($type) { case 'postcount': $query = 'SELECT count(*) as info from '.DB_PREFIX.'post where post_pub=1'; break; case 'commentcount': $query = 'SELECT count(*) as info from '.DB_PREFIX.'comment where comment_pub=1 and comment_trackback=0'; break; case 'tbcount': $query = 'SELECT count(*) as info from '.DB_PREFIX.'comment where comment_pub=1 and comment_trackback=1'; break; case 'viewcount': $query = 'SELECT SUM(nb_view) FROM '.DB_PREFIX.'post'; break; } $res = $con->select($query); if ($type == 'viewcount') { return($res->arry_data[0]['sum(nb_view)']); } else { return($res->arry_data[0]['info']); } } } ?>
Aller au contenu | Aller au menu | Aller à la recherche
lundi 11 février 2008
Par Delphine Michard, lundi 11 février 2008 à 17:44 :: Auteurs :: 1741 lectures
Vous souhaitez mettre un visage sur un nom ?
lundi 4 février 2008
Par Jean-Michel Le Baut, lundi 4 février 2008 à 13:27 :: Auteurs :: 1255 lectures
Il écrit aussi des lettres...