MySQL Forums
Forum List  »  Newbie

Re: SQL Syntax error!
Posted by: siti nuraini abd kadir
Date: January 30, 2011 08:58PM

i have the same error too... please help me.

you have connected succesfully error inserting new recordYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/ PTJ, NAMA, JAWATAN, SYARIKAT / INDUSTRI, PROGRAM / AKTIVITI, TAJUK, KURSUS BER' at line 1...

this is my insert syntax,

$sql = "INSERT INTO academia1 (BIL,FAKULTI / PTJ, NAMA, JAWATAN, SYARIKAT / INDUSTRI, PROGRAM / AKTIVITI, TAJUK, KURSUS BERKAITAN (jika ada), JUMLAH JAM, TARIKH PROGRAM) VALUES ('$_POST[bil]', '$_POST[fakptj]', '$_POST[nama]', '$_POST[jawatan]', '$_POST[syarikat]', '$_POST[program]', '$_POST[tajuk]', '$_POST[kursus]', '$_POST[jam]', '$_POST[tarikh]')";

Options: ReplyQuote


Subject
Written By
Posted
January 27, 2011 12:21PM
January 27, 2011 12:28PM
January 27, 2011 12:37PM
Re: SQL Syntax error!
January 30, 2011 08:58PM
January 30, 2011 09:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.