我有一个名为images_users的表,在这个表中我有
$req = $BDD->prepare('UPDATE images_users SET
img_name =:NEW_img_name,
img_id =:NEW_img_id,,
img_new_name =:NEW_img_new_name,
img_description =:NEW_img_description,
img_modification = NOW()
WHERE img_uploader =:username
');
$req->execute(array(
'NEW_img_name' => $nom_image_old,
'NEW_img_id' => $shuffled,
'NEW_img_new_name' => $nom_image_new,
'NEW_img_description' => '',
'username' => $_SESSION['username'],
));
问题在哪里:D ????
答案 0 :(得分:0)
img_id =:NEW_img_id,,
尝试:
$req = $BDD->prepare('UPDATE images_users SET
img_name =:NEW_img_name,
img_id =:NEW_img_id,
img_new_name =:NEW_img_new_name,
img_description =:NEW_img_description,
img_modification = NOW()
WHERE img_uploader =:username
');