Thank you for your reply.
Is it possible to use the unique identifier userid to do the matching. I tried this. To save the username entered by the user as a session. THen use that to reference agianst the mysql database. But it does not work. I get this error -
javax.servlet.ServletException: Unknown column 'entered user name' in 'where clause'
This is my code
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%
String username=(String) session.getAttribute("username");
if(username==null) username="";
%>
<% Class.forName("com.mysql.jdbc.Driver"); %>
<%
Connection connection = DriverManager.getConnection(
"jdbc:mysql://localhost:3306/*****","*****","******");
Statement statement = connection.createStatement() ;
ResultSet resultset =
statement.executeQuery("select no from details where name="+username );
%>
<TABLE BORDER="1">
<TR>
<TH>Name</TH>
</TR>
<% while(resultset.next()){ %>
<TR>
<TD>
<%= resultset.getString("no")%>
</TD>
</TR>
<% } %>
<html>
<head>
<title>Show Saved Name</title>
</head>
<body>
<p>Welcome: <%=username%><p>
</body>
[ June 02, 2006: Message edited by: vanan sara ]
[ June 02, 2006: Message edited by: vanan sara ]