• Post Reply Bookmark Topic Watch Topic
  • New Topic

insert into method

 
Kingsley Mullers
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any exception?

What is this?
DBconn=cn;
 
Kingsley Mullers
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!