Yes Pascal,
You are absolutely correct. It should be "@mysql_query" instead of "@cycle_query". Still...
In TrackDetailView.html I tried: PHP Code:
<?php
$cycle_update =" UPDATE contacts,emailman set contacts.cycle=contacts.cycle+1 where emailman.related_id = contacts.id and emailman.deleted !=1 ";
$result = @mysql_query ($cycle_update);
if ($result) { $alerts='Contact Cycle Updated'; }
else {$message = 'Contact Cycles WERE NOT UPDATED' . mysql_error();}
?>
and... PHP Code:
<php
$cycle_update =" UPDATE contacts,emailman set contacts.cycle=contacts.cycle+1 where emailman.related_id = contacts.id and emailman.deleted !=1 ";
$result = mysql_query ($cycle_update) or die(mysql_error());
?>
...and in EmailManDelivery.php I tried PHP Code:
if (isset($_REQUEST['send_all']) && $_REQUEST['send_all']== true) {
$send_all= true;
$update_cycle =" UPDATE contacts,emailman set contacts.cycle=contacts.cycle+1 where emailman.related_id = contacts.id and emailman.deleted !=1 ";
$db = & PearDatabase::getInstance();
$result = $db->query($update_cycle);
}
but it just won't update, and I know, having opened and run it in phpMyAdmin while contacts were still in emailman queue, that the following query works:
Code:
UPDATE contacts,emailman
SET contacts.cycle=contacts.cycle+1'
WHERE emailman.related_id = contacts.id'
AND emailman.deleted !=1
Bookmarks