这是我的HTML代码 当模糊事件触发时它显示错误,页面也在那里,并且它直接转到错误块并发出警告错误消息
这是HTML代码
DatePicker
这是我的jquery代码
<form id="myform" name="myform">
<input type = "text" name = "datepicker" id="datepicker" />
<input type="button" id="submitMe">
$(function() {
$("#datepicker").datepicker({
dateFormat: "mm-dd-yy",
}).datepicker("setDate", new Date());
});
$q_customer = $conn->query("SELECT * from orders inner JOIN
customer_order on customer_order.order_no
=orders.order_no inner join driver_order on
driver_order.order_no=orders.order_no LEFT JOIN
customer on customer.phone=customer_order.phone
order by k_time" ) or die(mysqli_error());
$k_time = '';
while($f_customer = $q_customer->fetch_array()){?>
<tr>
<?php
if($k_time == '' || $k_time != $f_customer['k_time']){
$k_time = $f_customer['k_time'];
echo "<td>".$f_customer['k_time']."</td>";
} else{
echo "<td> </td>";
}
?>
<td><?php echo $f_customer['order_no']?></td>
<td><?php echo $f_customer['first_name']?></td>
<td><?php echo $f_customer['last_name']?></td>
<td><?php echo $f_customer['address']?></td>
<td><?php echo $f_customer['driver_no']?></td>
<td><?php echo $f_customer['d_time']?></td>
<td><?php echo $f_customer['no_ofppl']?></td>
答案 0 :(得分:0)
将错误代码修复为:
error: function(err) {
console.log(err);
}
看看消息说的是什么。 另外 - 如果我不得不猜测,我会说URL部分已损坏 尝试对URL进行硬编码,看看会发生什么 对于未来 - 在PHP代码中嵌入PHP代码是不好的做法。