'; } $testo = '

'.stripslashes($rs[titolo]).'

'.stripslashes($rs[testo]).'

'.stripslashes($rs[video]).'
'; } else { $query = mysql_query("SELECT * FROM news WHERE 1 ORDER BY ordine ASC",$db); while($rs = mysql_fetch_array($query)) { if(strlen($rs['testo']) > 400) { $rs['testo'] = substr($rs['testo'],0,397).'...'; $app = ''; } if($rs['video'] != "") { $app = ''; } $testo .= "

".stripslashes($rs[titolo])."

".stripslashes($rs[testo])."
$app
"; } } echo str_replace('TEXT-',$testo,$html);