# HELP... my activation isn't workin

**URL:** <https://forum.kirupa.com/t/help-my-activation-isnt-workin/176578>\
**Category:** web dev\
**Created:** [January 25, 2006, 5:28am UTC](https://forum.kirupa.com/t/help-my-activation-isnt-workin/176578 "2006-01-25T05:28:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvzak](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@nvzak](https://forum.kirupa.com/u/nvzak)\
**Post date:** [January 25, 2006, 5:28am UTC](https://forum.kirupa.com/t/help-my-activation-isnt-workin/176578/1 "2006-01-25T05:28:15Z")

</div>

OK, i have built a client login and yet when i test it the activation doesn’t work. Heres the URL [http://client.cyhite.com/login/join\_form.php](http://client.cyhite.com/login/join_form.php). Here’s the code for the activate page

```php
<?
// Get database connection
include 'db.php';

// Create variables from URL.

$userid = $_REQUEST['id'];
$code = $_REQUEST['code'];

$sql = mysql_query("UPDATE users SET activated='1' WHERE userid='$userid' AND password='$code'");

$sql_doublecheck = mysql_query("SELECT * FROM users WHERE userid='$userid' AND password='$code' AND activated='1'");
$doublecheck = mysql_num_rows($sql_doublecheck);

if($doublecheck == 0){
echo "<strong><font color=red>Your account could not be activated!</font></strong>";
} elseif ($doublecheck > 0) {
echo "<strong>Your account has been activated!</strong> You may login below!<br />";
}

?>

```

I use the double check in all of my user management systems and so i dont think its that but, i could be rong, let me in on your thoughts.

Sorry if I miss posted in the client side section…
