Dreamweaver MX 2004 & amp; Filters of MySQL

I made a PHP page that displays all of the records of these and a database of MySQLL where I did the following...

seriesidamp
seriesName
seriesDesc
seriesDate

The problem is when I do a defined folder and apply a repeat region, it shows all my dates. I only want to show the most recent dates only.

For example if I for September 21, 2007 3 series and 5 series for September 22, 2007, I won't show all of my dates in the repeat region. I only want to show the last current date, which is September 22, 2007 all 5 entries, how this is done through MySQL? It is because the order of sorting and if so, how to make a request using the recordset object. I use Dreamweaver MX 2004 if it makes a difference.

AdonaiEchad wrote:
> For example if I have 3 series for September 21, 2007 and 5 for
> September 22, 2007, I don't want to show all of my dates of repetition
> region. I only want to show the last current date, which is September 22, 2007
> all 5 entries, how this is done through MySQL?

It all depends on what version of MySQL, your server is running. If it's MySQL
4.1 or higher, you can use a subselect like this query:

SELECT * FROM MyTable
WHERE seriesDate = (SELECT MAX (seriesDate) from myTable)

If your server is running an earlier version of MySQL, you should use
SELECT successively two queries: 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 in Dreamweaver is a little complicated, so I
won't go in unless you are using a version of MySQL.

--
Adobe Community Expert David Powers
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • Camera on MacBook Pro design flaw

    I was wondering if anyone else has noticed this. The placement of the camera is just where most of the people open the lids of their units. So it becomes strongly footprints in this place. Acid in printing seems to damage the screen in this area over

  • Qosmio G10-133 & Vista can't recognize my memory stick

    Hello I installed VISTA on this laptop, and I had a few problems that you can imagine! I can't recognize my memory stick. I can't find the drivers and that Windows is unable to solve the problem. Someone got clues? I'm also having a problem if I turn

  • Array with the element in Type String

    Hi all It seems that I couldn't create an array with the element in the string Type, all that available to choose is double or decimial. I'm sure it's my fault because I'm fresh for her. Any idea is appreciated, + Kunsheng

  • How to program the display of a 2D array index?

    Hi guys,. I am interested to do the 2D to the front table to move to the top rank by rank of itself when the program runs. Is there a way to program the display of the index? Thank you! Kind regards Vanessa

  • Toolbox for 930c

    Hello world. I have a 930c some14! Yes 14 years running as sweet as the day that I used it all first. I just upgraded my computer from xp to windows 7 and while the printer works well, I can't locate the Toolbox, which means I can't check ink levels.