Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : J2EE : JSP : Hi Again Signup · Login
Author Thread
Hi Again
Posted in tutorial: Inserting records into the Database with Java Servlets
·  cormier
User
Joined: 8 Jul 2003
Total Posts: 2
Hi Again
Posted: 9 Jul 2003
I have used this tutorial and as usual I have found it great ! I just have one problem though .... when I run this servlet it shows me "internal server error" and then following this message is a list of exceptions but the one that I think is the real problem is "syntax error in INSERT INTO....".
I am using a database with 4 fields and have used the following line:
INSERT INTO GlobalMessagesNEW1 VALUES (?,?,?,?)....

In your tutorial you have used 2 ? - one for first name and last name.. Is it ok to use as many ?'s as there are fields in the table ?

Usman

Users Who Have Visited This Thread In Last 24 Hours
3 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.