Ejemplo n.º 1
0
 public function GET($id)
 {
     if (!email::IFDELETED($id)) {
         $getQuery = "SELECT id, name FROM [dbo].[email] WHERE id={$id};";
         $row = mssql_fetch_array(mssql_query($getQuery));
         $result = new email($row["id"], $row["name"]);
         return $result;
     }
 }
Ejemplo n.º 2
0
 public function GET($siteID, $emailID)
 {
     if (!email::IFDELETED($siteID, $emailID)) {
         $getQuery = "SELECT siteID, emailID FROM [dbo].[siteEmail] WHERE siteID\t= {$siteID} AND emailID\t= {$emailID}";
         $row = mssql_fetch_array(mssql_query($getQuery));
         $result = new siteEmail($row["siteID"], $row["emailID"]);
         return $result;
     }
 }