Ciao!
Cambiando la pagina non mostra i risultati questo script, come mai?
L'errore è sicuramente in search.php magari una sciocchezza ^_^

Grazie


index.php
Codice PHP:
<form name="search" id="search" action="search.php" method="post">
<
input type="text" name="key" id="key" value="" size="30" maxlength="50">
<
input type="submit" value="Ricerca">
</
form
search.php
Codice PHP:
<?php
require ("include/info_site.php");
require (
"include/up_page.php");

$key $_POST['key'];
$min = (int)$_GET['min']; // UP 
$tot = (int)$_GET['tot']; // UP 

if ($key == "") {
header("Location: ../"true);
exit();
}; 

require (
"include/logo.php");

?>
<? 
/*
<div class="SearchResult">Risultati di [b]<?= $key ?>[/b] sul portale [b]<?= $NumResult ?>[/b].</div>

*/ 
?>
<table border="0" width="100%">
<tr>
    <td width="80%" valign="top">
<?php 
// UP 
if ($min) { 
    
$MySql "SELECT * FROM search_it WHERE parole_chiave LIKE '%$key%' LIMIT ".$min.",10"// UP 
    //var_dump($MySql); 
    
$Result mysql_query($MySql); 
    echo 
"<div class=\"SearchResult\">Risultati di [b]$key[/b] sul portale: [b]$tot[/b]</div>
"


else { 
    
$MySql "SELECT * FROM search_it WHERE parole_chiave LIKE '%$key%'"
    
$Result mysql_query($MySql); 
    
$tot mysql_num_rows($Result); 
    if (
$tot>10$min=0
    if (!(
$rs mysql_fetch_array($Result))) { ?><div class="SearchError">La ricerca non ha prodotto alcun risultato.</div><?; } 
    else {echo 
"<div class=\"SearchResult\">Risultati di [b]$key[/b] sul portale: [b]$tot[/b]</div>
"
; } 
    
$MySql "SELECT * FROM search_it WHERE parole_chiave LIKE '%$key%' LIMIT 10"
    
$Result mysql_query($MySql); 
    } 
// /UP 
while ($rs mysql_fetch_array($Result)) { 
?> 
<div align="left" class="ContainResult"> 
<div class="SearchTitle" style="text-transform: capitalize;">[url="<?= htmlspecialchars($rs["]"><?= htmlspecialchars($rs["titolo"]) ?>[/url]</div> 
<div class="SearchDescription"><?= htmlspecialchars($rs["descrizione"]) ?></div> 
<div class="SearchLink"><?= htmlspecialchars($rs["indirizzo"]) ?></div> 
</div>
 

<div> 
<? 

if (
$min!=false) { 
    if (
$min-10==0) echo "<a href=\"search.php?key=".$key."\">Indietro</a> "
    else echo 
"<a href=\"search.php?key=".$key."&min=".($min-10)."&tot=".$tot."\">Indietro</a> "

if ((
$min+10)<=$tot) echo "<a href=\"search.php?key=".$key."&min=".($min+10)."&tot=".$tot."\">Avanti</a>"

$rs->close
mysql_free_result($Result); 
?> 
</div>
    </td>
    <td width="20%" style="BACKGROUND-COLOR: #DEE0FE; BORDER-RIGHT: 2px dashed; BORDER-TOP: 0px dashed; BORDER-LEFT: 2px dashed; BORDER-BOTTOM: 0px dashed; BORDER-COLOR: #BABDFE;" valign="top">
<div align="center" style="COLOR: #898FFE;">[b]~ Sponsor ~[/b]

[url="http://ariel2005.altervista.org"][img]http://i37.tinypic.com/ruuxzt.jpg[/img][/url]


</div>
    </td>
</tr>
</table>



<div align="center">
<script type="text/javascript">
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=728X90/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script>
</div>
<?php
require ("include/down_page.php");
?>