$oderid, "goods_name" => $goods, "account" => $account, "name" => $name, "phone" => $phone, "card_sta" => $card_sta, "order_sta" => $oder_sta, "notes" => $notes, "order_time" => $timestamp ); } // 将数据转换为 JSON 格式并输出到前端 echo json_encode($data); } else { // 输出错误信息到前端 echo "查询失败,请稍后重试!"; } } else { // 输出错误信息到前端 echo "查询失败,请稍后重试!"; } } else { // 输出错误信息到前端 echo "查询失败,请稍后重试!"; } // 关闭数据库连接 mysqli_close($con);