<?
if(!isset($start)){
$start = 0;
$page=1;
}
$limit = '10';
if($strSearch=="0"){
//if($strSearch=="Y"){
$Qtotal = mysql_query("select * from product order by pro_id ASC");
}else if($strSearch=="1"){
$Qtotal = mysql_query("select * from product order by pro_id ASC");
}else{
$Qtotal = mysql_query("select * from product Where pro_id = '".$_POST["search"]."' order by pro_id ASC ");
}
$total = mysql_num_rows($Qtotal);
if($strSearch=="0"){
// if($strSearch=="Y"){
$Query= mysql_query("select * from product order by pro_id ASC LIMIT $start,$limit");
}else if($strSearch=="1"){
$Query= mysql_query("select * from product order by pro_id ASC LIMIT $start,$limit");
}else{
$Query = mysql_query("select * from product Where pro_id = '".$_POST["search"]."' order by pro_id ASC LIMIT $start,$limit");
}