how can i connect/send information from java to mySQL database then get the mySQL datatbase info to my php script?

sorry if it doesn't make much sense