I am using the latest CFORM plugin and am having an issue with ordering a form I am tracking.
My code is:
<?php
echo '<table border="0" cellpadding="6">';
echo '<tr><th align="left"><font size="2">Name</font></th><th align="left"><font size="2">Message</font></th><th width=70 align="left"><font size="2">Email Me</font></th></tr>';
$array = get_cforms_entries('activity',false,false,'date',15,'desc');
foreach( $array as $e){
$display = $e['data']['Allow Others to Email You?'];
$contact_link = $e['data']['Email'];
if($display == "Yes") {
$contact_allow = '<a href="mailto:'.$contact_link.' ">' . $display . '</a>';
} else {
$contact_allow = "No";
}
echo '<tr><font size="2"><td valign="top" align="left">' . $e['data']['Name'] . '</td>'.'<td valign="top" align="left">' . $e['data']['Message'] . '</td>'.'<td valign="top" align="left">' . $contact_allow . '</td>'.'</font>'.'<tr>';
}
echo '</table>';
unset($e);
?>
The URL is http://www.pleinairbc.com/shout-out/
The post by Angie is suppose to be above Alfonso as it was submitted after.
Anyone know what is going on?