Codice PHP:
<?php
$word
=trim($_get['parola']);

mysql_connect("localhost""root""") or die("Connessione fallita !");
mysql_select_db("portale") or die("Selezione Database fallita !");

$query "SELECT news1 from news where news1 like \"%$word%\"";

$select mysql_query($query) or die("Query fallita !");
while (
$result mysql_fetch_assoc($select) ) {
$notizia=$result['news1'];
echo 
nl2br("$notizia");
echo 
'
'
;
}
?>