/* written by LiYongQuan */
/* fetch data from a table, this table must contain two columns, one is department's ID, and another is department's name */
function department($all="T",$specify="N")
{
include "./tools/con_db.php";
$con=mysql_connect($DB_SERVER,$USER,$PASSWORD);
mysql_select_db($DB_NAME,$con);
$query="select * from Department";
$result=mysql_query($query,$con);
echo("");
mysql_close($con);
unset($result);
}
阅读(1030) | 评论(0) | 转发(0) |