遵循使用get方法和md5链接检索数据的SQL查询。
$strSQL = "SELECT * from rent_payment where link ='$link'";
mysql_query($strSQL) or die (mysql_error());
$query = mysql_query($strSQL);
while($row = mysql_fetch_array($query)) {
$link = $row['link'];
$num = $row['num'];
$title = $row['title'];
$fname = $row['fname'];
$lname = $row['lname'];
$address1 = $row['address1'];
$address2 = $row['address2'];
$city = $row['city'];
$state = $row['state'];
$country = $row['country'];
$pincode = $row['pincode'];
$order_date_time = $row['order_date_time'];
$amount = $row['amount'];
$status = $row['status'];
$comments = $row['comments'];
$orderid = $row['orderid'];
}
我能够检索除最后一个($ orderid)之外的所有数据;此列的下划线数据为“ _”,例如(rent_T1_2223,guest_G1_1423,rent_T3_9901),我不确定它如何仅排除一个列并检索另一列。