filtering results

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
peterhall
Forum Newbie
Posts: 24
Joined: Sat Aug 21, 2010 5:47 pm

filtering results

Post by peterhall »

Hi guys.

Hi have this table, with the sum of the results in a web page. in each result, I have a link to the detail table by the header, 'site', 'cell', etc..
now, what I want, is when i click in one result, where the filter is the date and the header (eg: site), opens the page only with the results from that date and that header.

this is the sum table:

Image

and, if I click 'site', '59', day 13-08-2010, appears:
(this is part of the result)
Image

how can I nake this filter between tables?

tks...
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: filtering results

Post by klevis miho »

In the second table should be an id or site column.
So in the first table you should put get variables in the link "59" (id and date).
When you click on the link, check if the get variables are present then do a query on the second table,
where the date is = the date in the first table and the id = the id of "59".
Post Reply