inc/record.inc.php
changeset 182 049347a649e0
parent 181 76a304b484ed
child 192 3d18290ac993
equal deleted inserted replaced
181:76a304b484ed 182:049347a649e0
    21 
    21 
    22 function zone_id_exists($zid) {
    22 function zone_id_exists($zid) {
    23 	global $db;
    23 	global $db;
    24 	$query = "SELECT COUNT(id) FROM domains WHERE id = " . $db->quote($zid);
    24 	$query = "SELECT COUNT(id) FROM domains WHERE id = " . $db->quote($zid);
    25 	$count = $db->queryOne($query);
    25 	$count = $db->queryOne($query);
    26 	if (PEAR::isError($result)) { error($result->getMessage()); return false; }
    26 	if (PEAR::isError($count)) { error($result->getMessage()); return false; }
    27 	return $count;
    27 	return $count;
    28 }
    28 }
    29 
    29 
    30 
    30 
    31 function get_zone_id_from_record_id($rid) {
    31 function get_zone_id_from_record_id($rid) {