I learned through video tutorials and built a membership site. However, I can’t log into my site and I haven’t been able to spot the problem.
<?php error_reporting(E_ALL); ini_set('display_errors', '1'); //----------------------------------------------------------------------------------------------------------------------------------- if ($_GET['id'] != "") { //Connect to the database through an include include_once "connect_to_mysql.php"; $id = $_GET['id']; $hashpass = $_GET['sequence']; $id = mysql_real_escape_string($id ); $id = preg_match("`", "", $id); $hashpass = mysql_real_escape_string($hashpass); $hashpass = preg_match("`", "", $hashpass); $sql = mysql_query("UPDATE memberFiles SET email_activated='1' WHERE id='$id' AND password='$hashpass'"); $sql_doublecheck = mysql_query("SELECT * FROM memberFiles WHERE id='$id' AND password='$hashpass' AND email_activated='1'"); $doublecheck = mysql_num_rows($sql_doublecheck); if($doublecheck == 0){ $msgToUser = "
Your account could not be activated!
Please email site administrator and request manual activation.
";
include 'msgToUser.php';
exit();
} elseif ($doublecheck > 0) {
$msgToUser = "
Your account has been activated!
Log In anytime up top.
";
include 'msgToUser.php';
exit();
}
} // close first if
When I try to activate the membership I get this error:[code]
Warning: preg_match() [function.preg-match]: No ending delimiter '`' found in /home/content/53/8957353/html/activation.php on line 16
Warning: preg_match() [function.preg-match]: No ending delimiter '`' found in /home/content/53/8957353/html/activation.php on line 19
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/53/8957353/html/activation.php on line 24
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/53/8957353/html/activation.php:16) in /home/content/53/8957353/html/scripts/checkuserlog.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/53/8957353/html/activation.php:16) in /home/content/53/8957353/html/scripts/checkuserlog.php on line 2 [/code]
Any help would be appreciated
Please email site administrator and request manual activation. "; include 'msgToUser.php'; exit(); } elseif ($doublecheck > 0) { $msgToUser = "