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

Recommended Answers

All 2 Replies

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 ?

Member Avatar for diafol

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.