HELP!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Activation Results</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" type="text/css" href="../default.css"><style>#bodydiv{height: 300px;}</style></head><body>
<div id="container"> <div id="content">
<?php include '../graphics/layout/header.php'; ?>
<div id="navbar"> <?php include 'menu/menu.php'; ?>
</div> <div id="bodydiv">
<body>
<h2><center>ACTIVATION RESULTS<center></h2>
<?
/*
Created By Adam Khoury @ www.flashbuilding.com
-----------------------June 19, 2008-----------------------
*/
//Connect to the database through our include
include_once "connect_to_mysql.php";
// Get the members id from the URL variable
$id = $_REQUEST['id'];
$id = preg_replace("[^0-9]", "", $id); // filter everything but numbers for security
if (!$id) {
echo "Missing Data to Run";
exit();
}
// Update the database field named 'email_activated' to 1
$sql = mysql_query("UPDATE members SET emailactivated='1' WHERE id='$id'");
// Check the database to see if all is right now
$sql_doublecheck = mysql_query("SELECT * FROM members WHERE id='$id' AND emailactivated='1'");
$doublecheck = mysql_num_rows($sql_doublecheck);
if($doublecheck == 0){
// Print message to the browser saying we could not activate them
print "<br /><br /><div align=\"center\"><h3><strong><font color=red><center>Your account could not be activated! <br>please report this problem to customer care by clicking Help above.<center></font></strong><h3><br /></div>";
} elseif ($doublecheck > 0) {
// Print a success message to the browser cuz all is good
// And supply the user with a link to your log in page, please alter that link line
print "<br /><br /><h3><font color=\"#0066CC\"><strong><center>Congratulations! <br>Your account has been activated!<center><br><br />
</strong></font></h3>";
}
?>
<?php include 'welcomelogin.php'; ?>
</div><div id="footer"></div><div id="underfooter"><p class="footer">
<a href="/index.php"><small>HOME</small></a>|<a
href="/member_search.php"> <small>MEMBER SEARCH</small></a>
| <a href="aboutus.php"><small>ABOUT US</small></a>
| <a href="/contactus.php"><small>CONTACTUS</small></a>
| <a
href="/booking.php"><small>BOOKING</small></a><br>
<br>© 2013 Source Vibe is a project of <a style="color: #555; font-weight: normal !important;" href="http://www.harborcitysolutions.com"><small>Harbor City Solutions.</small></a> All Rights Reserved.
<br>
<a style="color: #CC0000;" href="problemreport.php" target="_blank"><small>Report a Problem<small></a>
<table style="text-align: left; width: 800px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<td><div style="position:relative; top: -670px; left:280px;"><?php include 'account/login.php'; ?></div></td>
</tr>
</tbody>
</table>
</p></div> </div></div></div></body></html>