php mysql多重编码

时间:2015-09-10 07:27:10

标签: php

$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);

输出: - 当且仅当提供了名字和电话号码时,它才会显示正确的输出,否则它将显示一些随机值。

0 个答案:

没有答案