Ultimele cursuri'; $res = mysql_query('SELECT * FROM `cursuri` WHERE `STARE` = \'0\' ORDER BY `UID` DESC LIMIT 5',$link); if (mysql_num_rows($res)) { while ($r = mysql_fetch_array($res)) { echo '
'; echo '

'.$r['nume'].'
'.date('d',$r['data']).' '.$luni[intval(date('m',$r['data']))].' '.date('Y',$r['data']).'
'.$r['descriere'].'

'; } } else { echo '
Nu exista niciun curs nou adaugat
'; } include('footer.php'); ?>