| | |
Translate attempt
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 34
Reputation:
Solved Threads: 0
I am trying to translate the PHP script into Java. If anything please advise what or how this translates?
PHP:
My attempt in Java and it is giving me errors with getClientId part and lost in fetching array part.
PHP:
PHP Syntax (Toggle Plain Text)
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.
PHP Syntax (Toggle Plain Text)
//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)) { ....
•
•
Join Date: Nov 2007
Posts: 34
Reputation:
Solved Threads: 0
•
•
•
•
are you wanting us to translate it into java for you or just explain what the php is doing so you can make it into java.
Please correct my translation attempt in Java if possible.
![]() |
Similar Threads
- Can't change my desktop theme - get rundll32.exe (Viruses, Spyware and other Nasties)
- datadx.dll (Viruses, Spyware and other Nasties)
- IE problems - about: blank setting self as home page (Viruses, Spyware and other Nasties)
- Cant stop pop ups, computer lagging (Viruses, Spyware and other Nasties)
- blood sheds cin.get (confusing) (C++)
- Spyware complete with EULA (IT Professionals' Lounge)
- toolbars, read-only folders, and mysterious exe's OH MY! (Viruses, Spyware and other Nasties)
- IE/WinExpl Won't Open, Please Help w/ Hijack Log (Viruses, Spyware and other Nasties)
- Random errors on new comp (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: There was a problem parsing your XML
- Next Thread: how to disabled radio button went sent form
| Thread Tools | Search this Thread |
301 ajax apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dynamic echo email eregi error file files folder foreach form forms function functions google href htaccess html httppost image include insert integration ip java javascript joomla key limit link links login loop mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php phpvotingscript problem query radio random recursion regex remote script search searchbox server session sessions sms soap source space sql syntax system table tutorial update upload url validation validator variable video volume votedown web website xml youtube






