String sql = "select * from  "+tablename+"  where username = '" + name+ "' and pwd = '" + pwd+"'";
错误信息为
javax.servlet.ServletException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? 'saf'' at line 1
请高手帮忙!