<?
$delemp=$_GET["delemp"];
$emp_id=$_GET["emp_id"];
//ลบ
include("condb.php");
if ($delemp=="T") {
$sql8="delete from employee where emp_id='$emp_id' ";
$dbquery8=mysql_db_query($database,$sql8) or die ("ไม่สามารถทำตามคำสั่ง $sql8 ได้");
}
if ($search=="T") {
include("condb.php");
$sql="select * from employee where emp_id='$txtsearch' or emp_name like '%$txtsearch%' or emp_add like '%$txtsearch%' order by emp_id ";
$dbquery=mysql_db_query($database,$sql) or die ("error: $sql");
$num_rows=mysql_num_rows($dbquery);
$sql="select * from employee where emp_id='$txtsearch' or emp_name like '%$txtsearch%' or emp_add like '%$txtsearch%' order by emp_id "; echo $sql;
$dbquery=mysql_db_query($database,$sql) or die ("error: $sql");
$num_rows=mysql_num_rows($dbquery);