on 2014 Feb 06 4:22 AM
We are trying to complete / fix the below code, We cant seem to do the following.
I know its basicly there but we can't seem to figure out the final bug.
Please have a quick look at the code below and if anyone notices anything that isn't right please advice us.
http://pastebucket.com/27517 [CODE]
http://awkreativ.com/freelance/analogue/barrio_activation/ [WEBSITE]
<?php $username = $_POST['username']; $activation_code = $_POST['activation_code']; $activation_codeurl = $activation_code; $usernameurl = $username; $db_host = "localhost"; $db_name = "aardvark"; $db_use = "aardvark"; $db_pass = "aardvark"; $con = mysql_connect("localhost", $db_use, $db_pass); if (!$con){ die('Could not connect: ' . mysql_error()); } mysql_select_db($db_name, $con); $checkcustomer = mysql_query("SELECT `Check_Activation` FROM `members` WHERE `Username` = '".$username."' & `Activation` = '".$activation_code."'; "); $array = mysql_fetch_array($checkcustomer); if (is_null($array['Check_Activation'])) { $username = substr($username, 0, 1); if($username == '1') { $redirect_url='form-one.php?membernumber='.$usernameurl.'&activation_code='.$activation_codeurl; } elseif($username == '2') { $redirect_url='form-two.php?membernumber='.$usernameurl.'&activation_code='.$activation_codeurl; } elseif($username == '3') { $redirect_url='form-three.php?membernumber='.$usernameurl.'&activation_code='.$activation_codeurl; } header("Location:". $redirect_url); } else { ?>
User | Count |
---|---|
66 | |
11 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.