My mass mailing is not working and below is the error i got. Anyone help me please. Im using 6.1.4 and pasted codes from notifies.php's line 44 to 82 for quick reference. Please help.
-----------
PHP Parse error: parse error, unexpected T_VARIABLE in /root/xxxx/xxxx.xxx/html/periodic/notifies.php on line 63
---------------
// - Begin -
if ( $MODE == '_MAIL_' )
ob_start();
$msgs_per_start = getParam( 'msgs_per_start' );
$iFullCount = (int)db_value( 'SELECT COUNT(*) FROM NotifyQueue', 0 );
if ( !$iFullCount ) exit;
echo "\n- Start email send -\n";
echo "Total queued emails: $iFullCount\n";
$total_count = ($iFullCount < $msgs_per_start ? $iFullCount : $msgs_per_start);
$total_per_query = round( $total_count / 3 ) + 1;
echo "Ready for send: ". $total_count ."\n";
if ( $iFullCount ) {
$count_ok = 0;
$err = 0;
if ( $count_ok $total_count ) {
// Notify Messages
$nfs_res = db_res("
SELECT
NotifyQueue.Email as ID1,
NotifyQueue.Msg as ID2,
NotifyEmails.Name as Name,
NotifyEmails.Email,
NotifyMsgs.Subj,
NotifyMsgs.HTML as Body
FROM NotifyQueue
INNER JOIN NotifyMsgs ON
(NotifyMsgs.ID = NotifyQueue.Msg)
INNER JOIN NotifyEmails ON
(NotifyEmails.ID = NotifyQueue.Email)
WHERE
NotifyQueue.`From` = 'NotifyEmails' AND
NotifyEmails.EmailFlag = 'NotifyMe'
LIMIT $total_per_query
",0 );