djddc Posted March 27, 2010 Share Posted March 27, 2010 hi people , i have this problem in my script : * The query you are trying to run is invalid * Mysql Error Output: 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 ')' at line 3 * SQL Query: INSERT INTO probid_auction_media (auction_id, media_type, media_url, `order`) VALUES (100051, 1, 'uplimg/img_1000341037872_24623246jpg.jpg',) SQL-query: SELECT * FROM `probid_auction_media` LIMIT 0, 30 ; Rijen: 9 media_id media_url auction_id media_type upload_in_progress wanted_ad_id embedded_code reverse_id profile_id order 11 uplimg/img_1000301701877s345x243jpg.jpg 100035 1 0 0 0 0 0 3 uplimg/img_10001931030Roijpg.jpg 100019 1 0 0 0 0 2 4 uplimg/img_1000192gif.gif 100019 1 0 0 0 0 0 5 uplimg/img_10001945gif.gif 100019 1 0 0 0 0 1 6 uplimg/img_100021796b8fcd00ad5cf17737df1231fc47ecj... 100021 1 0 0 0 0 0 7 uplimg/img_1000211077169374044954gif.gif 100021 1 0 0 0 0 1 8 uplimg/img_100021full6287570jpg.jpg 100021 1 0 0 0 0 2 9 uplimg/img_1000301701877s345x243jpg.jpg 100030 1 0 0 0 0 0 10 uplimg/img_1000341037872_24623246jpg.jpg 100034 1 0 0 0 0 0 Link to comment https://forums.phpfreaks.com/topic/196676-mysql-error-help-pls/ Share on other sites More sharing options...
JustLikeIcarus Posted March 27, 2010 Share Posted March 27, 2010 Yes thats an invalid insert statement try it like this. INSERT INTO probid_auction_media (auction_id, media_type, media_url, order) VALUES (100051, 1, 'uplimg/img_1000341037872_24623246jpg.jpg', NULL) Link to comment https://forums.phpfreaks.com/topic/196676-mysql-error-help-pls/#findComment-1032599 Share on other sites More sharing options...
djddc Posted March 27, 2010 Author Share Posted March 27, 2010 Hi again , I've managed to track the error down to this line : $similar_item_media = $item->auction_media_fields(intval($_REQUEST['auction_id']), $session->value('auction_id')); Could someone tell me what I should change ? Link to comment https://forums.phpfreaks.com/topic/196676-mysql-error-help-pls/#findComment-1032677 Share on other sites More sharing options...
fenway Posted March 27, 2010 Share Posted March 27, 2010 You have a trailing comma for no reason. Link to comment https://forums.phpfreaks.com/topic/196676-mysql-error-help-pls/#findComment-1032837 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.