Trunacated错误的DOUBLE值:' ewf = 12432'

时间:2017-05-30 07:46:32

标签: php sql mysqli phpmyadmin

同一段代码与另一张表一起工作但是当我为表格显示时,它会显示"截断错误的DOUBLE值:' ewf = 12432'"。

我也没有双倍价值。 代码:

$time = '2332800';

 $datee = date('Y/m/d H:i:s', time());
$date = strtotime($datee);

 $sql = "UPDATE hired_jobsonline SET expiry_status = '1'
        WHERE job_status = 'open' AND $date > unix_time_date + $time AND expiry_status = '0'";

if ($con->query($sql) === TRUE) {
echo "Succesfully Checked 27 Days..<br/>";
    } else {
echo "Error: Check 27 Days Online :" . $sql . "<br>" . $con->error;
}

具有类似表的相同代码正常工作。我无法确定究竟是什么问题。

工作代码:

$sql = "UPDATE hired_jobslocal SET expiry_status = '1'
        WHERE job_status = 'open' AND $date > unix_time_date + 2332800 AND expiry_status = '0'";

if ($con->query($sql) === TRUE) {
echo "Succesfully Checked 27 Days..<br/>";
    } else {
echo "Error: " . $sql . "<br>" . $con->error;
}

这两个表都不包含任何DOUBLE值。

错误:1496129785 - Current date time 2017/05/30 13:06:25 - Current date time Error: Check 27 Days Online :UPDATE hired_jobsonline SET expiry_status = '1' WHERE job_status = 'open' AND 1496129785 > unix_time_date + 2332800 AND expiry_status = '0' Truncated incorrect DOUBLE value: 'ewf=12432'Copy to expiry_online table succesful. Hired Jobs online Status updated to 2.

当我尝试使用PHPMyAdmin控制台时,我收到此错误。

#1292 - Truncated incorrect DOUBLE value: 'ewf=12432'

0 个答案:

没有答案