Wednesday, September 14, 2011

Update server date time at user side by JavaScript

Hello. u can update server time at user side with different ways. I have done this as following:
On refresh I get server date time as milliseconds:

Tuesday, September 6, 2011

A Java PreparedStatement with a SELECT statement and LIKE clause

I want to select site language texts with filter. (I have added a LIKE clause to the SELECT statement.)

For me, the hard part of this example is figuring out how to use wildcard characters with your PreparedStatement parameter. I tried adding it directly to the SQL SELECT statement, then realized I just needed to use the ? character there, and then add the wildcards in the prepStmnt.setString() statement.