azrailbey: Brauche Hilfe You have an error in your SQL syntax

Beitrag lesen

kann es sein das es hir ist  der Fehler

include "header.php";

$aukid = $sessionVars["SELL_auction_id"];

$query =
                        "INSERT INTO auctions VALUES ('".$sessionVars["SELL_auction_id"]."', '". // auction id
                        $user_id."', '".
                        addslashes($sessionVars["SELL_title"])."', '". // auction title
                        $a_starts."', '". // auction starts
                        addslashes($sessionVars["SELL_description"])."', '". // auction description
                        addslashes($pcURL)."', ". // picture URL
                        $sessionVars["SELL_category"].", '". // category
                        $sessionVars["SELL_minimum_bid"]."', '".// minimum bid
                        (($sessionVars["SELL_with_reserve"])?$sessionVars["SELL_reserve_price"]:"0")."', '".// reserve price
                        $sessionVars["SELL_atype"]."', '".// auction type
                        $sessionVars["SELL_duration"]."', '".// duration
                        $sessionVars["SELL_country"]."', '".// country
                        $sessionVars["SELL_location_zip"]."', '".// zip code
                        $sessionVars["SELL_shipping"]."', '".// shipping method
                        $payment_text."', '".// payment method
                        (($sessionVars["SELL_international"])?"1":"0")."', '".// international shipping
                        $a_ends."', '".// ends
                        "0', '".// current bid
                        "0', ".// closed
                        (($sessionVars["SELL_file_uploaded"])?"1":"0").", ".
                        $sessionVars["SELL_iquantity"].", ".// quantity
                        "'0', ".//suspended
                        (($sessionVars["SELL_fett"])?"1":"0").", ".
                        (($sessionVars["SELL_marker"])?"1":"0").", ".
                        (($sessionVars["SELL_topkat"])?"1":"0").", ".
                        $sessionVars["SELL_zustand"].", '".
                        $sessionVars["SELL_artnr"]."', '".
                        $sessionVars["SELL_buy_now"]."', ".
                        "'0', ". // seller_rate
                        "'0', '". // buyer_rate
                        addslashes($pcURL2)."', '".   // Bild 2
                        addslashes($pcURL3)."', ".      // Bild 3
                        "0,'".$sessionVars["SELL_bundesland"]."',";
require("config/feldnamen.php");

		for($i=1;$i<=count($weitere\_felder);$i++) {  
		  $query.="'".$sessionVars["SELL\_feld".sprintf("%02d",$i)]."',";  
		}  
		$query.="'',"; // für shop\_kategorie  
		$query=rtrim($query,",");  

$query.=")";

if (!mysql_query($query))
                        print $ERR_001.mysql_error()."<BR>$query";
                else
                {