Merge pull request #113 from sempoi/patch-2

Update db_MYSQL.php
This commit is contained in:
Shadow
2014-03-07 15:14:24 +02:00
+5 -1
View File
@@ -1911,7 +1911,11 @@ class MYSQL_DB {
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getUnViewNotice($uid) {
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid AND viewed=0";
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function createTradeRoute($uid,$wid,$from,$r1,$r2,$r3,$r4,$start,$deliveries,$merchant,$time) {
$x = "UPDATE " . TB_PREFIX . "users SET gold = gold - 2 WHERE id = ".$uid."";
mysql_query($x, $this->connection);