root/ip/tags/release_1_3_0_53/includes/functions_selects.php
| 111 | 163 | ||
|---|---|---|---|
99 | { | 99 | { |
100 | global $db; | 100 | global $db; |
101 | 101 | ||
102 | $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY template_name, themes_id"; | 102 | $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY style_name, themes_id"; |
103 | if (!($result = $db->sql_query($sql, false, 'themes_'))) | 103 | if (!($result = $db->sql_query($sql, false, 'themes_'))) |
104 | { | 104 | { |
105 | message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql); | 105 | message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql); |
... | ... | ||
120 | { | 120 | { |
121 | global $db; | 121 | global $db; |
122 | 122 | ||
123 | $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY template_name, themes_id"; | 123 | //$sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY template_name, themes_id"; |
124 | $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " ORDER BY style_name, themes_id"; | ||
124 | if (!($result = $db->sql_query($sql, false, 'themes_'))) | 125 | if (!($result = $db->sql_query($sql, false, 'themes_'))) |
125 | { | 126 | { |
126 | message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql); | 127 | message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql); |
Download diff