I want to make a account activation page in php. I tried with these code, but every time it show
Your verification link is invalid or expired
whenever the email id and secret key is in my sql database what's wrong with my code? please help
<?php
$hash = $_GET['hash'];
$e = base64_decode($_GET['e']);
?>
<?php require_once("Connections.php");?>
<?php
mysql_select_db($database, $connection);
$sql=mysql_query("SELECT FROM temp WHERE email='$e' AND hashkey='$hash'");
if(mysql_num_rows($sql)!=1) {
echo "Your verification link is invalid or expired";
}
else {
if ($sql=mysql_query("DELETE FROM temp WHERE email='".$e."' AND hashkey='".$hash."'")) {
echo '<script type="text/javascript">
register_2($e);
function register_2(){
alert("Hi your email"+m);
}
</script>
';
}
}
?>