function getOrder($orderID)
{
('SELECT * FROM ?n WHERE primary_key=?i', $orderID)
}
function checkDate($orderID)
{
one ('SELECT date FROM ?n WHERE primary_key=?i', $orderID)
if(one>now) return true
}
function getAndCheck($orderID)
{
if($this->checkDate($orderID)) ('UPDATE t SET statusID WHERE primary_key=?i', $orderID);
$this->getOrder($orderID)
}