[FX.php List] If statements
Tim 'Webko' Booth
tim at nicheit.com.au
Thu Sep 11 00:00:51 MDT 2008
On 11/09/2008, at 1:44 PM, Josh Shrier wrote:
> I want to trap if found count is 0 display message and nothing else
> and if found count>0 display results page. Can someone please help me.
In the original find:
$searchProject = $searchProject -> FMFind();
$searchProjectCount = $searchProject['foundCount'];
In the page
<?php if ($searchProjectCount == 0) { ?>
<h1>Oh noes, there's nothing therrrreeeee</h1>
<?php } else { ?>
<h1>Whatever is to appear other wise</h1>
<?php } ?>
That's if you didn't trap for a 401 in the first place...
Cheers
Webko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/16ea43c2/attachment.html
More information about the FX.php_List
mailing list