Location: PHPKode > projects > PhpProjectMaster > www/inc/prio.lib.php
 prio related functions
 (c) 2004-2007 by "Oleg Savchuk" <hide@address.com>

 part of phpProjectMaster project

 The contents of this file are subject to the GNU GENERAL PUBLIC LICENSE

 require_once "sitelib.php";
 require_once "form_utils.php";
 require_once "upload_utils.php";

//preset module variables

   'table_name'   => 'prio',
   'table_key_id' => 'prio_id',

//get item fields from database
function get_prio($item_id){
 global $prio_vars;

 $sql="select * from $prio_vars[table_name] where $prio_vars[table_key_id]=".dbq($item_id);
 return db_row($sql);

//get item fields from database
function get_prio_name($item_id){
 return $row['iname'];

//mark item as removed
function delete_prio($item_id){
 global $prio_vars;

 db_query("update $prio_vars[table_name] set status=127 where $prio_vars[table_key_id]=$item_id");

Return current item: PhpProjectMaster