if (count($sess_id)=="0") {
$check=1;
} else if (!in_array($id_prd, $sess_id)) {
$check=1;
}
if ($check==1) {
include ("connect.php");
$sql="select * from tb_product where id_prd='$id_prd' ";
$result=mysql_db_query($dbname,$sql);
$rs=mysql_fetch_array($result);