|
|
|
ตอบหน่อยค่ะ session_start(); include ในส่วนที่ประกาศตัวแปรข้างล่างนี้มันประกาศยังงัยค่ะ |
|
|
|
|
|
|
|
<?
session_start();
include("veri_staff.php");
$tb[err]="";
$tb[num]=8;
$tb[hd]="รายวิชาที่สอน";
$tb[sql]="Select * From ((tabian inner join subject on tabian.sub_id=subject.sub_id) inner join teacher on tabian.tch_id=teacher.tch_id ) inner join dstudent on tabian.std_id=dstudent.std_id ";
$tb[group]=" group by tabian.year,tabian.term,tabian.clas,dstudent.room ";
$tb[deltab]="teaching";
$tb[delfld]=array(0,1);
$tb[ord]="order by tabian.year desc ,tabian.term desc ,tabian.sub_id ,tabian.clas,dstudent.room";
$tb[scr]=array("year","tabian.term","tabian.sub_id","sub_name","credit","tch_name","tabian.clas","room");
$tb[head]=array("ปีการศึกษา","ภาคเรียน","รหัส","ชื่อวิชา","หน่วยกิต","อาจารย์ผู้สอน","ชั้น","ห้อง");
$tb[fld]=array("year","term","sub_id","sub_name","credit","tch_name","clas","room");
$tb[edit]=array("sub_id","sub_name","credit","group_id","clas","term");
$tb[add]=array("sub_id","sub_name","credit","group_id","clas","term");
$tb[func]=array(1,1,1,1,1,1,3,1);
$tb[alg]=array(2,2,1,1,2,1,1,2);
$fname= $_SERVER['REQUEST_URI'];
ในส่วนที่ประกาศตัวแปรข้างล่างนี้มันประกาศยังงัยค่ะ
$fname=substr($fname,strcspn($fname,"=")+1,25);
if(strcspn($fname,"&")>0)
{
$fname=substr($fname,0,strcspn($fname,"&"));
}
$fnamefull= $_SERVER['REQUEST_URI'];
if(strcspn($fnamefull,"&")>0)
{
$fnamefull=substr($fnamefull,0,strcspn($fnamefull,"&"));
}
include("show.php");
?>
Tag : - - - -
|
|
|
|
|
|
Date :
7 พ.ค. 2551 01:17:09 |
By :
777 |
View :
1321 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ไม่เข้าใจคำถาม
|
|
|
|
|
Date :
7 พ.ค. 2551 23:58:02 |
By :
omc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|