Translate attempt



I am trying to translate the PHP script into Java.

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. Please advise any corrections I
need?
Java:
//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)) {

.....
.



Relevant Pages

  • Re: Help me!! Why java is so popular
    ... He is arguing that Java performance is less than C/C++ ... No, I'm assuming it takes longer to translate a thing and run it, than ... the JVM, abc gets translated to native code and executed -- Java class ... ready to go so it's executed -- which instance of abc's execution ran ...
    (comp.lang.java.programmer)
  • Re: GoTo in Java
    ... >> to translate it to Java, and get something not too bad. ... > While that mechanism may be a nice toy for learning different languages ... > your 'cleaned up' Java now works the same as the Fortran code. ... with all programming languages to ensure that the documentation for each ...
    (comp.lang.cobol)
  • Re: GoTo in Java
    ... >> to translate it to Java, and get something not too bad. ... > your 'cleaned up' Java now works the same as the Fortran code. ... NOT maintain source code. ... Encapsulate functionality and reuse it. ...
    (comp.lang.cobol)
  • Re: Is it possible to put several objects into one file?
    ... How does Java know from where to where an objec is in the file? ... When JAXB will let you translate objects to an XML text representation, ... You might use Java serialization, but there are many other ways to do it. ...
    (comp.lang.java.programmer)
  • Re: this <--- Problem with THAT!
    ... Whether or not there was any insult made is very subjective. ... Here is how I would translate the above statement: ... I am more informed about the practices of OO and therefore, Java; ... Sun Certified Developer for the Java 2 Platform ...
    (comp.lang.java.programmer)