Posts by Lucas Martins • 100 points
3 posts
-
0
votes1
answer42
viewsA: Get all Rows from a query
Try it like this: ResultSet rs = conn.prepareStatement("SELECT * FROM `rankups`").executeQuery(); while(rs.next()) { String nick = rs.getString("nick"); String rank = rs.getString("rank"); UUID uuid…
-
7
votes1
answer649
viewsQ: Do I need to close the connection in each query?
Currently I have a web application that queries multiple databases in the same controller. For each database I request a connection at the server startup and keep them in a static class where the…
-
-2
votes5
answers14658
viewsA: How to validate date taking into account leap year?
Here’s a function I did. It’s simple and it works in a way: function ValidarData() { var aAr = typeof (arguments[0]) == "string" ? arguments[0].split("/") : arguments, lDay = parseInt(aAr[0]), lMon…