kensington45
Technical User
- Jun 26, 2008
- 9
I have something working great in PHP but now I need to move something over to a server without PHP and am trying to translate the PHP script into Java.
PHP:
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?
PHP:
Code:
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?
Code:
//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)) {
....