getRow($sql); $status = false; if($result) $status = true; else $status = false; $results = array("status" => $status,"value" => $result['hours']); $json = json_encode($results); echo $json; ?>