[FX.php List] Conditional formatting of last item
Andy Gaunt
andy at fmpug.com
Mon Jan 15 07:47:27 MST 2007
Roger,
What you may need to do is use a counter and if the counter equals the found
count then apply your new style.
Something like
$counter = 0;
$foundCount = $queryResult['foundCount'];
foreach($queryResult['data'] as $key = $value) {
if ($counter == $foundCount) {
//Change your style here
} else {
// Perform standard style here
}
// Rest of your query can go here
$counter++;
}
HTH
Andy Gaunt
Office: 321.206.3658
Mobile: 407.810.4722
andy at fmpug.com
http://www.fmpug.com
2006 FileMaker Excellence Award Winner
Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award
For chapter locations, dates & times please visit the website at
http://www.fmpug.com If you can make it to a meeting, please RSVP at
http://www.fmpug.com/rsvp.php
_____
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Roger Price
Sent: Monday, January 15, 2007 9:34 AM
To: FX.php Discussion List
Subject: [FX.php List] Conditional formatting of last item
I am trying to display a list of events selected by an FX.php search.
I display the list with a heading only if the found count is > 0.
I would like to apply a different style to the last item but do not know how
to do this.
Please can anybody help me?
Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070115/29aabdda/attachment-0001.html
More information about the FX.php_List
mailing list