'$nrec')";
if(!($result=mysql_query($sql,$conn)))
{
echo ("Error selecting data from guestbook table.\n");
}else{
echo "
\n";
echo "
\n";
echo "
\n";
while ($datarecord=mysql_fetch_row ($result) and $count1 < 20)
{
if ($datarecord[5]=='no') {continue;}
$datains=explode("-",$datarecord[1]);
$j=0;
while (isset($datains[$j])) {
$where=$where."Testo LIKE '%".$datains[$j]."%'";
if (isset($datains[$j+1])):
$where=$where." OR ";
endif;
$j++;
}
$mins=$datains[1];
$dins=$datains[2];
$yins=$datains[0];
echo "