MySQL Forums
Forum List  »  General

Re: using jsp to update
Posted by: Felix Geerinckx
Date: May 11, 2005 09:38AM

andrew waller wrote:

> if I do it that way how do I know that the variable Im searching for will be the username?

I don't understand this. I just wanted to say that instead of:

> "update student set (UserName = ?, Password = ?, fname = ?, lname = ?, address =?, phone = ?)
> where UserName = '" + username + "'";

you could write

"update student set UserName = ?, Password = ?, fname = ?, lname = ?, address =?, phone = ?
where UserName = ?"

and pass the username as the 7th variable to your java method.

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
May 11, 2005 04:53AM
May 11, 2005 05:50AM
May 11, 2005 08:46AM
Re: using jsp to update
May 11, 2005 09:38AM
May 11, 2005 09:48AM


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.