hi, i'm trying to check wether an email address is in the blacklisted table.
here is the code i am using atm,
PHP Code:
$consumerfullname = $_POST["text_consumerfullname"]; // rerequest consumer full name
$consumeremail = $_POST["text_consumeremail"]; // rerequest consumer email
$tsql = "SELECT * FROM 7_blacklist WHERE `text_E-mailAddress` = ".$consumeremail.";\n";
$sql .= $tsql;
$result = mysql_query($tsql);
$err = mysql_error();
$sql .= strtoupper($err)."\n";
if ($result) {
echo " <result>\n";
echo "Your e-mail address has been blacklisted for inappropriate use of Ferrety.co.za by the administrators.\n\n".
"Please contact Jaap Venter at [email protected] for more information.";
echo " </result>\n";
} else {
// do e-mail stuff
}
unfortunately for some reason that logic does not dictate, a blacklisted e-mail address can STILL send requests 0o.
I sincerely doubt it has anything to do with the - (dash) in the column name, as that is the reason for the backfacing quotes around it (`escaped-column-name`).
__________________
Sincerely,
Pierre "Greywacke" du Toit
[email protected]
don't worry about my 0 thankyou's either way, i would say thank you should you help, and i will gladly help others when this work rush is over.