$customer_phonenumber = $_POST['customer_phonenumber'];
$customer_firstname = $_POST['customer_firstname'];
$sql =mysql_query( "SELECT * FROM tbl_customer WHERE customer_firstname = '$customer_firstname' OR customer_phonenumber = '$customer_phonenumber' ") or die(mysql_error());
$sqlarray=mysql_fetch_array($sql);
输出: - 当且仅当提供了名字和电话号码时,它才会显示正确的输出,否则它将显示一些随机值。