<?php if(isset($id) AND isNum($id)){ $result = dbquery("SELECT * FROM lentele WHERE id = '$id' "); $data = dbarray($result); echo "<pre>"; print_r($data); echo "</pre>"; } ?>