I am trying to translate the PHP script into Java. If anything please advise what or how this translates?
PHP:
if(isset($_GET['getClientId'])){
$res = mysql_query("select * from tableOne where clientID='".$_GET['getClientId']."'") or die(mysql_error());
if($inf = mysql_fetch_array($res)
...
My attempt in Java and it is giving me errors with getClientId part and lost in fetching array part.
//db connection part here...
try {
String res = "";
if(getParameter("getClientId")) {
res = stmt.executeQuery("select * from tableOne where clientID='" + getParameter("getClientId") + "');
String $inf [];
if($inf.equals(getParameterValues($res)) {
....