Hey..
das ist mein Code
	
Die Datei datei.php erzeugt einen Link mit GET Parametern
Der Fehler
	
Wieso ist das den ein SQL Fehler??
							
						
					das ist mein Code
PHP-Code:
	
	
// init curl connection and execute it
$sHost       = "http://localhost";
$iPort       = 80;
$URL         = "/privat/datei.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $sHost . ":" . $iPort . $URL);
curl_setopt($ch, CURLOPT_HTTP_VERSION, 1.0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_FAILONERROR,1);
$result = curl_exec($ch);
echo $result; 
die(); 
Der Fehler
PHP-Code:
	
	
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 1 
 
           Moderator
 Moderator
Kommentar