| | |
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 |
Tag cloud for PHP
.htaccess access ajax alerts apache api array beginner binary broken cakephp checkbox class cms code convert cron curl database date directory display download dynamic echo email error file files folder form forms function functions google hack href htaccess html htmlspecialchars image include insert integration ip java javascript joomla limit link login loop mail menu methods mlm mod_rewrite multiple mysql network object oop overwrite parse paypal pdf php problem query radio random recursion redirect regex remote script search securephp server sessions sms soap source space sql structure syntax system table tutorial update upload url validation validator variable video web xml youtube






