F
francan00
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)) {
.....
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)) {
.....