$max_char){ $stringa_tagliata=substr($stringa, 0,$max_char); $last_space=strrpos($stringa_tagliata," "); $stringa_ok=substr($stringa_tagliata, 0,$last_space); return $stringa_ok."...";} else{return $stringa;} } $operazione=$_GET['operazione']; $codice_scheda=$_GET['codice_scheda']; echo " REGGINA NEWS
"; require("menu.php"); echo "
"; require("left.php"); echo "
"; require("banner_centrale.php"); echo "
"; $sql_content = "select * from reggina_contents where codice='redazione' order by id asc"; $result_content = mysql_query($sql_content) or die ("Couldn't execute SQL query CONTENT"); while ($row = mysql_fetch_array($result_content)) { $paragrafo = $row["paragrafo"]; $titolo = $row["titolo"]; $testo = $row["testo"]; echo "
$titolo
$testo
"; } echo "
"; require("right.php"); echo "
"; require("sponsor.php"); echo "
"; require("banner_grande.php"); echo "
"; require("footer.php"); echo "
"; ?>