Example #1
0
 public function getShop($shopId)
 {
     $database = Database::sharedDatabase();
     $database->connectDatabase();
     $sql = "SELECT * FROM Shop WHERE id={$shopId}";
     $result = mysql_query($sql);
     $database->closeDatabase();
     $row = mysql_fetch_array($result);
     return $this->setShopWithRow($row);
 }