I am currently using the following to pull data from a table in my database (used in a Custom Code item in an OnLoad event):
One of the fields returned in the array is 'acct_name'. How can I have the array sorted, by default, by this field? I don't need to make the column sortable by the end user, but I would like the data presented in alpha order.
<?php
foreach($form->data['UserDetails'] as $detail):
?>
One of the fields returned in the array is 'acct_name'. How can I have the array sorted, by default, by this field? I don't need to make the column sortable by the end user, but I would like the data presented in alpha order.
This topic is locked and no more replies can be posted.