posted 13 years ago
Dear experts,
I would like to check whether my connectivity syntax is it correct. Thanks.
try {
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/databasename", "table name","password");
//collect information from the form data
strNRIC = request.getParameter("txtNRIC").trim();
catch blah blah balh
Many thanks.