CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 cannnot check customer ID in my database..

Print topic Send  topic

Author Message
liee

Posts: 1
Posted: 10/19/2012, 9:25 PM

try{
stmt=con.createStatement();
String query="Select * FROM customer WHERE idno=('"+idnum+"')";
ResultSet rs=stmt.executeQuery(query);
if(rs.next())
{
String dbpass=rs.getString(idnum);
if(dbpass.equals(""))
{
JOptionPane.showMessageDialog(this, "you are members", "Success", JOptionPane.INFORMATION_MESSAGE);

}
else
{
JOptionPane.showMessageDialog(this, "you are not member", "Success", JOptionPane.QUESTION_MESSAGE);

}
}
}
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.