if (empty($curl))
{
echo "
COPYRIGHT WWW.METEOROMAGNA.COM
QUESTO SITO STA VIOLANDO IL COPYRIGHT DI
www.meteoromagna.com |
";
}else
{
include("include/setup.php");
$link = mysql_pconnect($host,$user,$pass);
if (! $link)
die ( "Impossibile connettersi al db $db");
mysql_select_db($db)
or die ("Impossibile selezionare il db $db" .mysql_error ());
$query = mysql_query("Select * from gallery where (gallery_id = '$idg' ) ");
while($ris2= mysql_fetch_array($query))
{
if ( (empty ($ris2[contatore])) or ($ris2[contatore] == "0") )
{
$contatore = "1";
}
if ( ($ris2[contatore] == "1") or ($ris2[contatore] > "1") )
{
$contatore = $ris2[contatore] + 1;
}
}
$aggiorna = mysql_query("Update gallery set
contatore = '$contatore'
where gallery_id = '$idg' ");
echo"
COPYRIGHT WWW.METEOROMAGNA.COM
";}
?>