我只是将我的项目从mysql切换到mysqli并收到此错误,请在这里帮助。
<?php
$idd=$_GET['id'];
$result = $mysqli->query("SELECT * FROM sales WHERE
IDInvoice='$idd'");
while($dec = $result)fetch_array()
.$salesid=$dec['salesid'];
$ClientName=$dec['ClientName'];
$PhoneNumber=$dec['PhoneNumber'];
$SaleDate=$dec['SaleDate'];
?>