我以下的代码是:在第一个页面检察数据库是否有此ID,如没有则继续,但问题是为何不会继续.
<?php
$post_lct_id=$lct_id;
include "admin/inc/conn.php";
$query="select lct_id from user where lct_id='$post_lct_id'";
$result=@mysql_query($query);
$rows=mysql_num_rows($result);
if ($rows >=1)
{
?>
<script>
alert( "User ID already engross,please check!!"
;
</script>
<?
include("checkid.htm"
;
exit;
}
else
{
$continue=1; //继续执行此页的HTML代码.
}
?>