winnie99
01-10-2010, 03:33 AM
hi everyone,
I would like to extract user's records from the database based on username.
For example after the user has login using his username, he is able to see his own records.
I have tried :
rst = stmt.executeQuery("SELECT * FROM customer_table WHERE UserName='" + username + "'");
but it doesn't work...is there anything wrong somewhere?
I would like to extract user's records from the database based on username.
For example after the user has login using his username, he is able to see his own records.
I have tried :
rst = stmt.executeQuery("SELECT * FROM customer_table WHERE UserName='" + username + "'");
but it doesn't work...is there anything wrong somewhere?