This is a discussion on "Slicker solution?" within the Classic ASP section. This forum, and the thread "Slicker solution? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Slicker solution?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi, I am building a small website for a snooker club. I have one ASP page that displays historic data, (tournament results etc) grouped in categories and contained in a DIV. The problem I have is that my customer wants to be able to view by category, i.e click on a category and only see that category displayed in the results. Would I have to provide a new page for each category where the SQL is hard coded or is there a slicker solution I can employ?
|
|
|
|
#2
|
|||
|
|||
|
Re: Slicker solution?
No, you could do it dynamically with PHP.
Here's some untested pseudo code: The SQL table has, for example, three columns - one | two | three HTML:
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#3
|
|||
|
|||
|
Thanks for that; although I haven't much of a clue how to use PHP or MySQL, I think I can follow your code. Maybe I can pass an argument to the code that creates the query and just reload the page. I really am going to have to get to grips with MySQL
Rob |
![]() |
| Tags |
| asp |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drop-down menu solution? | Sanehouse | Web Page Design | 10 | May 2nd, 2008 11:02 |
| Need internet marketing solution? | hretlin | PHP Forum | 1 | Mar 8th, 2008 07:17 |
| Help can't find solution | bcwups | Web Page Design | 2 | Nov 30th, 2007 18:50 |
| Can't think of a solution!! | snowangel | PHP Forum | 3 | Mar 12th, 2006 21:20 |
| New Member, looking for a web solution | timthompson | Job Opportunities | 2 | Feb 26th, 2006 07:36 |