selfxemployed
05-07-2009, 11:00 PM
[07-May-2009 16:20:01] PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/sandip89/public_html/email/autoresponder.php on line 44
[07-May-2009 16:21:14] PHP Parse error: syntax error, unexpected T_IF in /home/sandip89/public_html/email/autoresponder.php on line 45
Here's lines 40-50
function PutInTheQueue($email)
{
global $database;
if (mysql_fetch_row(mysql_query("select * from {$database['table']} where `account`=".mslash($email['account'])." AND message_id=".mslash($email['message_id']))))
return true;//already in queue
$email['duetime'] = date("Y-m-d H:i:s",$email['duetime']);
return mysql_query(InsertSQL($database['table'],$email));
}
//------------------------------------------------------------------------------
function mslash($s)
[07-May-2009 16:21:14] PHP Parse error: syntax error, unexpected T_IF in /home/sandip89/public_html/email/autoresponder.php on line 45
Here's lines 40-50
function PutInTheQueue($email)
{
global $database;
if (mysql_fetch_row(mysql_query("select * from {$database['table']} where `account`=".mslash($email['account'])." AND message_id=".mslash($email['message_id']))))
return true;//already in queue
$email['duetime'] = date("Y-m-d H:i:s",$email['duetime']);
return mysql_query(InsertSQL($database['table'],$email));
}
//------------------------------------------------------------------------------
function mslash($s)