switch(true)
{
case $select=="name":
$SQL="select * from product where pro_name like '%$search%' ";
break;
case $select=="detail":
$SQL="select * from product where pro_id like '%$search%' ";
break;
default:
$SQL="select * from product ";
break;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Product</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<style type="text/css">
<!--
.style3 {font-size: 12px}
.style9 {font-size: 9px; font-family: "MS Sans Serif", Tahoma, sans-serif;}
.style15 {
font-size: 9px;
font-family: "Microsoft Sans Serif";
font-weight: bold;
}
.style16 {font-family: "Microsoft Sans Serif"}
-->
</style>
</head>