$host="localhost";
$username="";
$password="";
$db="customer";
$tb="Cus_tomer";
mysql_connect( $host,$username,$password) or die ("ติดต่อกับฐานข้อมูล Mysql ไม่ได้ ");
mysql_select_db($db) or die("เลือกฐานข้อมูลไม่ได้"); /* ทำการเลือกฐานข้อมูลก่อน */
$sql="SELECT * FROM $tb where $fields like '%$keyword%'";
if(($Page>$Num_Pages) || ($Page<0))
print "<center><b>จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ<b></center>";
$Page_start , $Per_Page";
$sql = "select * From $tb where $fields like '%$keyword%' order by id asc LIMIT $Page_start , $Per_Page";