CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Drop down list search

Print topic Send  topic

Author Message
lammy

Posts: 49
Posted: 05/20/2005, 10:29 AM

Hi everyone

I am just getting my head round php and ccs.
what im trying to do is :-

i have a search text box called s_keyword i want to add a drop down list that contains 4 categories, each category uses a different table for information.
which ever category is selected the search needs to search the appropriate table and send the results to a specific page
(I have a results page for each category)

Is this something that is easy to do or as a beginner am I out of my depth at the moment.

if somebody can explain how its done I would appreciate it
View profile  Send private message
peterr


Posts: 5971
Posted: 05/20/2005, 12:52 PM

This could be little complex, therefore I'd recommend getting more experience with simpler things first, best finishing the CCS Task Management tutorial.
Though if you like to try, a possible solution could be:
1. Create a new table that contains all 4 categories and the corresponding table names. Then use it in your listbox.

2. Use the Before Execute event to select and change the SQL dynamically, at run-time. See http://docs.codecharge.com/studio/html/ProgrammingTechn...yingOutput.html for an example of how to view the SQL statement, while you can use some PHP code to replace its value with the table that you want to use.

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.