$purchased_time = $db->Execute("SELECT UNIX_TIMESTAMP('". $order->info['date_purchased'] ."') as ot from orders");其中$db->Execute是集合了连接数据库的那几个语句。