Hi there, i've written the following method to pass values and insert them into a database, it doesn't seem to work, can't see where i've gone wrong..thanks
many thanks
[edited to add code tags] [ August 24, 2005: Message edited by: Jeanne Boyarsky ]
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
posted
0
Do you have any exception?
What is this?
DBconn=cn;
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Kingsley Mullers
Ranch Hand
Joined: Jan 14, 2005
Posts: 48
posted
0
DBconn is connection,
error: return type incorrect... What i'm confused about... is it supposed to return insertcomplainantDetails or should the return type be null?
vikassheel gupta
Ranch Hand
Joined: Aug 02, 2005
Posts: 53
posted
0
hi try this public void mehtod name and remove the return null; this statement because i think insert statement will not return any thing thats why this problem occurs fine