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; } }
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; } }