AdonaiEchad wrote:
> For example if I have 3 series for September 21, 2007
and 5 series for
> September 22, 2007, I do not want to show all of my
dates from the repeat
> region. I only want to show the last current date which
is September 22, 2007
> all 5 entries, how is this done through MySQL?
It depends which version of MySQL your server is running. If
it's MySQL
4.1 or higher, you can use a subselect query like this:
SELECT * FROM myTable
WHERE seriesDate = (SELECT MAX(seriesDate) from myTable)
If your server is running an earlier version of MySQL, you
need to use
two SELECT queries in succession: the first to create a SQL
variable,
the second to perform the actual selection like this:
SELECT @latest := MAX(seriesDate) FROM myTable
SELECT * FROM myTable
WHERE seriesDate = @latest
The way that you do this in Dreamweaver is slightly
complicated, so I
won't go into it unless you're using an early version of
MySQL.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/