0

So I have a MySQL db called "Example". In the db, I have a table with a row called "Rank" and "Name". I want to be able to input "Rank" and "Name" values into the db through URL.

I have made a Tomcat server through Eclipse, and would like help on the java code in order to use the parameters to send data to the db.

Thanks in advance!

Ed Lee
  • 387
  • 2
  • 7
  • 12

1 Answers1

1

Java - sending HTTP parameters via POST method easily

The question itself shows a 'GET' method. the accepted answer shows a 'POST' method. All the handling should be done on your server.

This is a code for sending it the right values to the server.

Do you need help with the server itself? I know how to do that in php, if that helps you

Community
  • 1
  • 1
La bla bla
  • 8,558
  • 13
  • 60
  • 109
  • yes, help with the server inserting values to the DB would greatly be appreciated! – Ed Lee Aug 09 '12 at 23:09
  • Can you show what have you done so far? If you're using Tomcat, I can't help you (maybe this like would. http://www.mulesoft.com/tomcat-mysql) since I have no knowledge in Tomcat. I can however, help if you want php to connect to a DB, but I dunno if that's an option. don't know how your server is setted up. – La bla bla Aug 09 '12 at 23:23
  • please look at this question: http://stackoverflow.com/questions/11893462/how-to-input-data-into-mysql-from-eclipse – Ed Lee Aug 09 '12 at 23:31