0

Hello ALL

i am new here so please be gentle.

i have a problem i can quite solve.

here is my table:

id | Account | Dollars | Amount | date
--------------------------------------------------------------------------------
1 | JD001 | 45 | 5 | 2009-04-04
2 | JD001 | 78 | 8 | 2009-05-17
3 | JD001 | 65 | 3 | 2009-06-20

so basic what i need to do is display this info on screen like so.

[a href="#"]April 2009[/a]

when they click the href link they will be directed to page which will display all related info for that month.

frstly i dont know how to find out where my href link must start and secondly once they click on the href link how to pull all info only from a given month.


Please help

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by diafol
0

now are you grabbing dates from the database then you want to display the data on another page

or will you just have dates on one page and when you click on the dates button and or text link it will display all the data for that on another page from data in a database ?

0

$query = "SELECT id, Account, Dollars, Amount, DATE_FORMAT(date,'%M %Y') AS Mydate FROM mytable"; I think this will work.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.