public function GET($siteID, $phoneID) { if (!phone::IFDELETED($siteID, $phoneID)) { $getQuery = "SELECT siteID, phoneID FROM [dbo].[sitePhone] WHERE siteID\t= {$siteID} AND phoneID\t= {$phoneID}"; $row = mssql_fetch_array(mssql_query($getQuery)); $result = new sitePhone($row["siteID"], $row["phoneID"]); return $result; } }
public function GET($id) { if (!phone::IFDELETED($id)) { $getQuery = "SELECT id, name FROM [dbo].[phone] WHERE id={$id};"; $row = mssql_fetch_array(mssql_query($getQuery)); $result = new phone($row["id"], $row["name"]); return $result; } }