Aug 21st, 2010, 2:10 PM
(This post was last modified: Aug 22nd, 2010, 5:11 AM by nickanthony.)
When I try to login as a user to the Submission Account, I get this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY list_order' at line 4
Does anyone know what this means; and how and where I might address the problem?
I did find the 'ORDER BY list_order' code in /global/code/admin.php; but not sure what to do with it.
function sa_get_form_menu($form_id)
{
global $g_table_prefix;
$menu_query = mysql_query("
SELECT *
FROM {$g_table_prefix}module_submission_accounts_menus
WHERE form_id = $form_id
ORDER BY list_order
");
$menu_items = array();
while ($row = mysql_fetch_assoc($menu_query))
$menu_items[] = $row;
return $menu_items;
}
My server has MySQL version 5.1.47-community-log;
and here is the ORDER BY in the manual -
http://dev.mysql.com/doc/refman/5.1/en/o...ation.html
Thnx for any help, Nick
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY list_order' at line 4
Does anyone know what this means; and how and where I might address the problem?
I did find the 'ORDER BY list_order' code in /global/code/admin.php; but not sure what to do with it.
function sa_get_form_menu($form_id)
{
global $g_table_prefix;
$menu_query = mysql_query("
SELECT *
FROM {$g_table_prefix}module_submission_accounts_menus
WHERE form_id = $form_id
ORDER BY list_order
");
$menu_items = array();
while ($row = mysql_fetch_assoc($menu_query))
$menu_items[] = $row;
return $menu_items;
}
My server has MySQL version 5.1.47-community-log;
and here is the ORDER BY in the manual -
http://dev.mysql.com/doc/refman/5.1/en/o...ation.html
Thnx for any help, Nick