Salve
, ho un problema con questo script che non mi esegue mai la registrazione
Codice PHP:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
include_once("include/config.php");
if(strlen($_GET['id']) == 33){
$sql_conferma = "SELECT id, nome FROM Registrazione WHERE uid= '".$_GET["id"]."'";
$result_conferma = mysql_query($sql_conferma) OR DIE (mysql_error());
$row = mysql_fetch_array($result_conferma);
if($row != 0){
$query = "UPDATE Registrazione SET temp= '0' WHERE id = '".$row['id']."'";
$query_rsl = mysql_query($query) OR DIE (mysql_error());
echo "<center>La tua registrazione è stata confermata ".$row['nome']." ora puoi effettuare il login</center>";
}else{
echo "<center>La registrazione non può essere confermata, probabilemente poichè è scaduta.</center>";
}
} else { echo 'la stringa id non è valida';}
?>
ho controllato le query e tutto bene funche non arriva alla funzione $row che non da risposta