$my->query("UPDATE ideas
SET category = 'Document Options',
category_id = '4',
status = 'Released',
status_id = '3',
title = 'Support for iPad',
idea = 'Add support for iPad. Allow uploads and downloads via the anonymous App for iPhone and iPad.',
release = '0',
release_date = ''
WHERE id = '225'");
$my
是一个包含许多其他mysql命令的自定义类。为了证明它工作正常,它适用于以下查询:
$my->query("UPDATE idea_feedback
SET Feedback = '$feedback',
Date = '$fdate'
WHERE ID = '$i'");
答案 0 :(得分:4)
发布是一个关键字,反击它
$my->query("UPDATE ideas SET category='Document Options', category_id='4',
status='Released', status_id='3', title='Support for iPad',
idea='Add support for iPad. Allow uploads and downloads via the anonymous App for iPhone and iPad.',
`release`='0', release_date='' WHERE id='225'");
注意: