Hello,
Once the user activates his email by clicking on the link he receives in his in box, he gets this message.Your e-mail has been activated.You will receive the profile details soon.
Heres the code:
$statement="UPDATE $mytable SET activated='1' WHERE activated='".$HTTP_GET_VARS['id']."'";
echo "Your e-mail has been activated.You will receive the profile details soon";
$sql=mysql_query($statement) or die(mysql_error());
The link which the user receives in his e-mail would look like
http://inkaytown.f2o.org/project/activate.php?id=aacedfhgj
If i open a new browser and just type upto activate.php with out id, i still see that message.
Though my table gets updated only when the user click on the link but still I want to avoid this message.
So, how should i use mysql_affected_rows() here in my context?
Thanks