Location: PHPKode > projects > EverQuest Roster/Gallery > html/includes/read_award.php
<?
        /**********************************************************************************
        *                                                                                 *
        *                                read_char.php                                    *
        *                             -------------------                                 *
        *                                                                                 *
        * Program           : EverQuest Roster/Gallery v1.7b1                             *
        * Copyright         : (C) 2001 - 2002 BladeTek Internet Services &                *
        *                                                     The EQRG Developement Team  *
        * Website           : http://eqcode.roleplayersinteraction.com                    *
        * Support Website   : http://www.sourceforge.net/projects/eqrostergallery         *
        * Email             : hide@address.com                                        *
        *                                                                                 *
        * For license information, please read the documents directory which              *
        * came with this edition                                                          *
        *                                                                                 *
        **********************************************************************************/

        function read_awards(&$awards) {

                        $query  = "select *";
                        $query .= "  from awards";
                        $query .= " order by award_name ASC";

                        $awards["count"] = query_db($query, $awards, true);

                return $err;
        }

        function read_award($id, &$award) {
                global $SESSION;

                if ($SESSION["level"] != ADMIN) {
                        $err = ERR_NOT_ENOUGH_ACCESS;
                } else {
                        $query  = "select *";
                        $query .= "  from awards";
                        $query .= " where award_id = $id";

                        query_db($query, $award);
                }

                return $err;
        }

        function read_awarded($id, &$awarded) {

                        $query  = "select *";
                        $query .= "  from awarded as a";
                        $query .= "  left join awards as aw on aw.award_id = a.aid";
                        $query .= " where a.userchar = $id";

                        $awarded["count"] = query_db($query, $awarded, true);

                return $err;
        }

        function read_awarde($id, &$awarde) {

                        $query  = "select *";
                        $query .= "  from awarded";
                        $query .= " where userchar = $id";

                        query_db($query, $awarde);

                return $err;
        }
?>
Return current item: EverQuest Roster/Gallery