repeat region fails
Hi
I'm having an issue with applying a repeat region;
The following works fine (a calculated unix_timestamp, with the current year and birth month and day, so that this year's day can be displayed).
<p><?php echo strftime("%a %e %b", $rsBirthdays->getColumnVal("cbirth")); ?> - <?php echo($rsBirthdays->getColumnVal("FirstName")); ?> <?php echo($rsBirthdays->getColumnVal("Surname")); ?></p>
Showing the first record properly.
However, as soon as I apply the repeat region:
<?php
while(!$rsBirthdays->atEnd()) {
?>
<p><?php echo strftime("%a %e %b", $rsBirthdays->getColumnVal("cbirth")); ?> - <?php echo($rsBirthdays->getColumnVal("FirstName")); ?> <?php echo($rsBirthdays->getColumnVal("Surname")); ?></p>
<?php
$rsBirthdays->moveNext();
}
$rsBirthdays->moveFirst(); //return RS to first record
?>
the region repeats, but I get the following error where the date should be displayed:
Warning: strftime() expects parameter 2 to be long, string given in /home/sites/domainname.org/public_html/admin/sites/members/birthdays.php on line 77 - (members name here)
Hope there's a simple solution!
(I should add that I have a similar 'events' page where everything works fine - but I can't see any differences!)
Many thanks
Chris