View file inc/funct_index.php
<?php function get_category($id) { if (empty($id)) return FALSE; $res = mysql_fetch_object(mysql_query('SELECT * FROM `categories` WHERE id='.$id.'')); if (isset($res)) return $res; else return FALSE; } ?>
<?php function get_category($id) { if (empty($id)) return FALSE; $res = mysql_fetch_object(mysql_query('SELECT * FROM `categories` WHERE id='.$id.'')); if (isset($res)) return $res; else return FALSE; } ?>