| | |
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 |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






