Please replace the ??? with your data!
- URL to the FORM: http://???
- The browser used: ???
- cforms version: ???
- Your Wordpress version: ???
[desc]:
I'm using the following code to display data from one of two forms, in ascending alphabetical order by City. However, it's not sorting that way. Just in order of last entered at the top. What am I doing wrong?
<?php
$array = get_cforms_entries('Add References',false,false,'City',false,'asc'); /* sort by City field in ascending order */
echo '<div align="center"><table>';
echo '<tr><th>City</th><th>Address</th><th>Work Performed</th></tr>';
foreach( $array as $e ){
echo '<tr><td>' . $e['data']['City'] . '</td><td>' . $e['data']['Address'] . '</td><td>' . $e['data']['Work Performed'] . '</td><tr>';
}
echo '</table></div>';
?>