From 3419f06b0b217b95836e478004e79c894b74b514 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 1 Mar 2011 17:59:08 +0000 Subject: [PATCH] emergencycontact ORDER BY id --- user.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.inc.php b/user.inc.php index 5caa291a..0730e94b 100644 --- a/user.inc.php +++ b/user.inc.php @@ -97,7 +97,7 @@ function user_load($users_id, $accounts_id = false) if(array_key_exists('participant', $u['roles'])){ $u['emergencycontacts'] = array(); $fields = array('firstname', 'lastname', 'relation', 'phone1', 'phone2', 'phone3', 'phone4', 'email'); - $q = mysql_query("SELECT " . implode(',', $fields) . " FROM emergencycontact WHERE users_id = $users_id"); + $q = mysql_query("SELECT " . implode(',', $fields) . " FROM emergencycontact WHERE users_id = $users_id ORDER BY id"); while($row = mysql_fetch_assoc($q)){ $u['emergencycontacts'][] = $row; }