请大家看里面的if else 语句
<?php
include_once("include/db_connection.php");$thisCustomer_id = $_REQUEST['customer_idField'];$sql = "SELECT * FROM customers WHERE customer_id = '$thisCustomer_id'";
mysql_query("SET NAMES 'GB2312'");$result = MYSQL_QUERY($sql);
$numberOfRows = MYSQL_NUMROWS($result);
if ($numberOfRows==0) {  
?>找不到记录 !!<?php
}
else if ($numberOfRows>0) { $i=0;
$thisCustomer_id = MYSQL_RESULT($result,$i,"customer_id");
$thisFname = MYSQL_RESULT($result,$i,"fname");
$thisLname = MYSQL_RESULT($result,$i,"lname");
$thisCompany = MYSQL_RESULT($result,$i,"company");
$thisAddress1 = MYSQL_RESULT($result,$i,"address1");
$thisAddress2 = MYSQL_RESULT($result,$i,"address2");
$thisCity = MYSQL_RESULT($result,$i,"city");
$thisState_province = MYSQL_RESULT($result,$i,"state_province");
$thisCountry = MYSQL_RESULT($result,$i,"country");
$thisPostal_code = MYSQL_RESULT($result,$i,"postal_code");
$thisPhone = MYSQL_RESULT($result,$i,"phone");
$thisFax = MYSQL_RESULT($result,$i,"fax");}
?>
为什么if()后面的{还没遇到} 就用?>把一段php结束了
后来又起了一个<?php第二段<?php 开始之后 上来就是一个} 请问这难道不是语法错误吗?为什么没有报错? 谢谢大家