include "config.php3"; include "dbconn.php3"; $query="select * from $S_table where productcode='$code'"; $result=mysql_query($query,$dbconn); $query2="select * from $T_table where cid='$cid'"; $result2=mysql_query($query2,$dbconn); $tnumber=mysql_num_rows($result2); $queryadmin="select continue from $A_table"; $resultadmin=mysql_query($queryadmin,$dbconn); $continue=mysql_result($resultadmin,0,0); if(!$tnumber){ if($med=='bag'){ echo ""; echo ""; exit; } echo ""; echo ""; exit; } ?>