PhpMyAdmin不接受已验证的MySQL查询

PhpMyAdmin不接受已验证的MySQL查询,php,mysql,phpmyadmin,Php,Mysql,Phpmyadmin,所以,我有这个: $newModel = "UPDATE models SET firstname=" . PrepSQL($firstname) . ", lastname=" . PrepSQL($lastname) . ", email=" . PrepSQL($email) . ", password=" . PrepSQL($password) . ", \"group\"=" . PrepSQL($group) . ", phone=" . PrepSQL($phone) . ",

所以,我有这个:

$newModel = "UPDATE models SET firstname=" . PrepSQL($firstname) . ", lastname=" . PrepSQL($lastname) . ", email=" . PrepSQL($email) . ", password=" . PrepSQL($password) . ", \"group\"=" . PrepSQL($group) . ", phone=" . PrepSQL($phone) . ", timeofday=" . PrepSQL($timeofday) . ", dayofweek=" . PrepSQL($dayofweek) . ", address=" . PrepSQL($address) . ", city=" . PrepSQL($city) . ", state=" . PrepSQL($state) . ", zip=" . PrepSQL($zip) . ", gender=" . PrepSQL($gender) . ", hair=" . PrepSQL($hair) . ", eye=" . PrepSQL($eye) . ", birthday=" . PrepSQL($birthday) . ", birthmonth=" . PrepSQL($birthmonth) . ", birthyear=" . PrepSQL($birthyear) . ", bustshirt=" . PrepSQL($bustshirt) . ", cup=" . PrepSQL($cup) . ", waist=" . PrepSQL($waist) . ", hips=" . PrepSQL($hips) . ", weight=" . PrepSQL($weight) . ", inches=" . PrepSQL($inches) . ", dressjacket=" . PrepSQL($dressjacket) . ", workxp=" . PrepSQL($workxp) . ", twitter=" . PrepSQL($twitter) . ", facebook=" . PrepSQL($facebook) . ", joindate=" . PrepSQL($joindate) . ", instagram=" . PrepSQL($instagram) . ", imdb=" . PrepSQL($imdb) . ", parentid=" . PrepSQL($parentid) . ", ethnicity=" . PrepSQL($ethnicity) . ", error='' WHERE id=" . $inserted_id;
在解释之后,它看起来是这样的:

UPDATE models SET firstname='This', lastname='Person', email='rbross3333@gmail.com', password='gwpmgca8', "group"='1', phone='1234123412', timeofday='', dayofweek='', address='1234 Fictional', city='City', state='AL', zip='12345', gender='1', hair='blonde', eye='', birthday='08/06/1993', birthmonth='', birthyear='', bustshirt='', cup='', waist='12', hips='12', weight='12', inches='', dressjacket='12', workxp='', twitter='', facebook='', joindate='2013-09-04 17:11:34', instagram='', imdb='', parentid='', ethnicity='african-american', error='' WHERE id=346"
当我将解释查询放在这里时:

这是有效的

当我将其直接放入phpmyadmin时,我得到:


那么如何正确地将字段名
group
(“group”?)传递到?

尝试使用反勾“`而不是在group周围加引号

像这样:

`group` = 1

Nit wrt标识符引号的选择:MySQL使用'ident'语法(uhg!),除非启用了允许正确SQL“ident”语法的模式(yay!)。这是无效的MySQL。@RickBross这是有问题的部分!