Error - Posting External Form to Board

Started by kangkenyot, August 28, 2006, 11:27:04 PM

Previous topic - Next topic

kangkenyot

Pls advise me which one is an error for below my SQL syntax  :'(

Quote
// Poster ID, name, and email address.
$ID_MEMBER = 2;
$posterName = $_POST['Kotadiaberada'];
$posterEmail = $_POST['Emailaddressanda'];

// And what are we posting?
$form_subject = addslashes('Data ' . $_POST['Kotadiaberada'] . ' ' . $_POST['NamaCewek']);
$form_message = addslashes('message');

RESULT:
Quote
Database Error
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 ' 2, 'Dataaaa, aaa', 'aaa', '[email protected]', 1156768093,
'202.7
process.php
Line: 156 

Server use = MySQL version 4.0.25-standard

2 is the result of ID_MEMBER
Dataaaa,aaa is come from addslashes('Data ' . $_POST['Kotadiaberada'] . ' ' . $_POST['NamaCewek']);
The rest come from addslashes('message');

Pls help  :'( :'(

kangkenyot


Advertisement: