vegnadragon Posted March 2, 2008 Share Posted March 2, 2008 Ok, here is what i got first $send_enemy_jutsu = implode(",",$enemy_jutsu); $query = "UPDATE `phpbb`.`game_status` SET temp_store = (`$send_enemy_jutsu`) WHERE `game_status`.`id_ref` = $enemy_id LIMIT 1"; $db->sql_query($query); my error is You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1,1,1,1 WHERE `game_status`.`id_ref` = 2 LIMIT 1' at line 1 [1064] SQL UPDATE `phpbb`.`game_status` SET temp_store = 1,1,1,1,1 WHERE `game_status`.`id_ref` = 2 LIMIT 1 Apparently i can't seem to store 1,1,1,1,1 in temp_store. i putted in between (), '', `` none of them worked . Any solution ? Link to comment https://forums.phpfreaks.com/topic/94076-update-problem/ Share on other sites More sharing options...
php_dave Posted March 2, 2008 Share Posted March 2, 2008 Try, $query = "UPDATE `phpbb`.`game_status` SET temp_store = ('".$send_enemy_jutsu."') WHERE `game_status`.`id_ref` = $enemy_id LIMIT 1"; Think that would work... Link to comment https://forums.phpfreaks.com/topic/94076-update-problem/#findComment-481962 Share on other sites More sharing options...
vegnadragon Posted March 2, 2008 Author Share Posted March 2, 2008 Thanks, man. It worked . Link to comment https://forums.phpfreaks.com/topic/94076-update-problem/#findComment-481974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.