<?php
function get_tad_player_cate($group_name){
  global $xoopsDB;
  //`pcsn`, `of_csn`, `title`, `enable_group`, `enable_upload_group`, `sort`, `width`, `height`

  $sql="select pcsn , title , enable_upload_group from ".$xoopsDB->prefix("tad_player_cate")." where title like '%{$group_name}%'";
  $result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error());
  list($pcsn , $title , $enable_upload_group)=$xoopsDB->fetchRow($result);
  $cate['sn']=$pcsn;
  $cate['title']=$title;
  $cate['power']=$enable_upload_group;
  $cate['file']="index.php";
  $cate['col']="pcsn";

  return $cate;
}
?>