|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
double drop down and database
Hello, I am currently working on a double dynamic drop-down and I have some difficulties to make it.
I have written the following but it does not work that’s why I’m looking for your help. I have to write it in php. In fact I have a list of course in a database like this Code:
ID tablename course 1 bcsq boot camp for SQ 2 bcst ….. The dates depand on the course they choose and are from a database also. Ex: table: bcsq id location coursename 1 houston 14/06/2004 bcsq 2 dallas 15/07/2004 Once the choice is made I/m willing to put with a submit button the date and the name of the course in a table Here is the code I wrote but which does not work PHP Code:
Last edited by stumpy : June 30th, 2004 at 12:57 AM. Reason: Please use [CODE] or [PHP] tags for code or your post may be deleted. |
|
#2
|
|||
|
|||
|
I quickly glanced at your code but there are a few things you left out.
1 - The one thing you did not mention is where you are having a problem. 2 - You posted about 75-80 lines of code... this should be an attachment. You would do yourself a lot of good by doing the following: a. If you are having trouble getting the database to spit out the results you need, check your queries and spit them out to standard output. b. If you are having trouble with the actual javascript in the drop-downs, you would be better off writing the javascript code in a standalone static html file manually, then test the procedure c. Try to put these routines together, one line at a time. Take your time. If you still need help at this point, let me know. If you have the need for the actual javascript that can do the double drop down, let me know. I have written this functionality many times. There are very little good tutorials on the net concerning this. The ones that are available are usually pretty bad.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > double drop down and database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|