PHP,JAVA,MYSQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Etherguy
Forum Commoner
Posts: 70
Joined: Fri Nov 01, 2002 9:09 pm
Location: Long Island, New York

PHP,JAVA,MYSQL

Post by Etherguy »

Hello All:

I have been on a search and destory mission looking for some sample code that incorporates PHP,Java, and MYSQL.

What I am looking to do is, have a drop down menu that has its values supplied from mysql database through PHP. That was the easy part, and it is working like a champ! Now what I want to happen is, when you select a value from the drop down, I want the java script to populate the screen / forms with the rest of the values from the DB, so basically it populates with the different values from each value in the pulldown.

Okay, if I have not lost you, does anyone have any sample code, or a remote idea :) on how to do this?

Thanks in advance!
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

Java or Javascript (ie-- do you want an applet-type thing or just some client-side code)?

If you want javascript, look here: viewtopic.php?t=6568
Granted, the code there is merely for a pair of select boxes, but the theory is applicable for other things as well.

If you want Java, then I suggest you make a module that can take the proper parameters and then have it affect the browser (basically, an applet that can take parameters). However, I do not have any sample code of that type anywhere.
Post Reply