PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Wed Sep 17, 2008 3:31 pm
Code: Select all
$email = mysql_real_escape_string($email);
$sql = "SELECT * FROM newsletter WHERE email='$email'";
#echo "SQL=$sql<br/>";
$query_select = mysql_query();
$error_msg = mysql_error($query_select);
if(! $error_msg) && (mysql_num_rows($query_select) > 0)) {
$page_content = "Email address found.";
} else {
$page_content = "Email address not found. Error=" . $error_msg;
}
echo $page_content;
(#10850)
mlarson154
Forum Newbie
Posts: 15 Joined: Tue Apr 11, 2006 3:00 pm
Post
by mlarson154 » Wed Sep 17, 2008 4:58 pm
Thank you, thank you, thank you! Finally, it is working. I appreciate your patience and help!