Hi,
> sqlStrSel = "INSERT INTO jk.Pas(User_Id,hpas,First_Name) values('"+
> struserid + "','" + Encrypt(strpassword) + "','"+ strusername +"')";
>
>
> out.println(sqlStrSel);
>
> INSERT INTO jk.Pas(User_Id,hpas,First_Name) values('M','\.-,+*)('&','M')
>
> If password is "M" , the encrypted value is \.-,+*)('&
>
>
> Since encrypted value of "M" also contains ' (single quotes as shown
> above) , how to handle this ?
>
> In the above statement there is a mismatch of ' (quotes) if the password
> was something else like A etc then the stmt. is fine since there isnt any
> mismatch in quotes..but only in this case of "M" being the password, the
> re is this discrepancy..
>
> lem me know of ur suggestions to solve this problem.
>
> regds.
Mohan.a
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets