HI,
I don't know if i am in the right topic, but it is my first day here.
My problem is that i have wrote an function (part) to keep in track how many emails i have really sent. But somewhere i made an mistake, and i don't see it anymore what i did wrong ( i am just fighting for 6 hours with this sucker) So i hope somebody can help me out and see what the problem is.
function checkInput ($show) {
/*
* I implemented the $show variable because the error messages
* were getting sent before the page header. So, I check once
* using $show=false, and then when I'm ready to display the error
* message, show=true
*/
global $body, $send_to, $send_to_bcc, $subject, $color;
if ($send_to == '' && $send_to_bcc == '') {
if ($show) {
plain_error_message(_("You have not filled in the \"To:\" field."), $color);
}
else
{$mysql_id=mysql_connect("back","mailcounter","XXXXX");
mysql_select_db("mailco", $mysql_id);
mysql_query('UPDATE myuser SET Mailtot=Mailtot + 1 WHERE userName=$username");
mysql_close($mysql_id);
}
return false;
}
return true;
}
It is in Php ofcourse.
I hope to hear from someone.
Greetz