我在使用php 5.3版的脚本错误日志iam中发现了这些错误,下面是我的代码:
// add entry
$sql = "INSERT INTO plugin_reward_ppd_detail (reward_user_id, download_ip, file_id, download_country_group_id, download_date, reward_amount, status)
VALUES (:reward_user_id, :download_ip, :file_id, :download_country_group_id, :download_date, :reward_amount, 'pending')";
$vals = array('reward_user_id' => $file->userId,
'download_ip' => $usersIp,
'file_id' => $file->id,
'download_country_group_id' => $countryGroupId,
**'download_date' => sqlDateTime(),**
'reward_amount' => $rewardAmount);
$db->query($sql, $vals);
}
我在这个问题上有个错误:
'下载日期'=>sqldatetime()
1条答案
按热度按时间93ze6v8z1#
如果你想在“下载日期”列中添加当前时间,你可以试试这个
或者