Jump to content
MakeWebGames

arash

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by arash

  1. it works now... just added something wrong...but one more problem: even when I activate a account I can not login bcause it says: Your account is not active, check your email address including junk boxes. someone know the reason?
  2. it does not send out emails....why?
  3. thanks for the reply... i did change it to array and now I get this error:   Fatal error: Call to undefined function mysql_num_array() in /activation.php on line 11
  4. how?
  5. hi. I need some help whith emailvalidations... I get this error:Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/arash/public_html/activation.php on line 11 Invalid Validation Code   what is wrong here? and here is the code:     <?php session_start(); include "mysql.php"; $c; if(!$_GET['code'] || !$_GET['act']) { die("Invalid Use Of System."); } else { $code=$_GET['code']; $cq=mysql_query("select * from confirm where code=$code",$c); if(mysql_num_rows($cq)== 0) { die("Invalid Validation Code"); } $r=mysql_fetch_array($cq); if($_GET['act'] == 'activate') { mysql_query("UPDATE users SET confirmed='1' WHERE userid={$r[user]}",$c); mysql_query("DELETE FROM confirm WHERE code=$code",$c); print "Account Validated! [url='login.php']Login[/url]"; } else if($_GET[act] == 'cancel') { mysql_query("DELETE FROM users WHERE userid={$r[user]}",$c); mysql_query("DELETE FROM confirm WHERE code=$code",$c); print "Your account has successfully been cancelled, Were sorry you had to leave.";exit; } else { die("Invalid Action."); } } ?>
×
×
  • Create New...