Hi
I am trying to figure out how to do this.
I am trying to pull info from a database in php, see DB attachment.
As you will see, there are 3 main columns
price_listing | price_date | price_value
What I am trying to achieve is...
The values in price_value are daily prices in £´s
Select a value from price_value and when this changes output the start date and and to date and divided the price_value by 7, making the result, prices per week.
i.e. In the attached DB image you will see price_listing (unique property id) the value 123 and this starts from the 30th June to the 4th July. It then changes from the 5th July to the 19th July to 157 and so on through the year.
What I would like is the output like this...
30 Jun - 4th Jul £861.00
5th July - 18th July £1099.00
19th July - 29th July £1400.00
This will take the start and end date from price_date where price_value is the same.
Anyone have any ideas how to achieve this.
Thanks in advance.
M