2
/********************************************************
3
include/as_update.DB.inc
5
(C)2002-2003 Ryo Chijiiwa <Ryo@IlohaMail.org>
7
This file is part of IlohaMail, and released under GPL.
8
See COPYING, or http://www.fsf.org/copyleft/gpl.html
11
Update session table with latest send operation.
13
********************************************************/
15
// delete this session and any old unclosed ones
16
include_once("../conf/db_conf.php");
19
include_once("../include/idba.$DB_TYPE.inc");
22
$numSent = $numSent+$num_recepients;
23
$sql = "UPDATE $DB_SESSIONS_TABLE";
24
$sql.= " SET lastSend=".time().", numSent=$numSent";
25
$sql.= " WHERE sid='$sid'";
26
if ($db->query($sql)) echo "as updated done.<br>\n";
27
else echo "as update failed: $sql <br>\n";
29
echo "DB connection failed.<br>\n";
b'\\ No newline at end of file'