da kommt immer nur in der menüleiste das:
Fatal error: Cannot redeclare reorder_cat() in G:\Programme\apachefriends\xampp\htdocs\netzhouse\admin\admin_links_cat.php on line 45
- Code: Select all
// --------------------------
// This function will sort the order of all categories
//
function reorder_cat()
{
Zeile 45 --> global $db;
$sql = "SELECT cat_id, cat_order
FROM ". LINK_CATEGORIES_TABLE ."
WHERE cat_id <> 0
ORDER BY cat_order ASC";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not get list of Categories', '', __LINE__, __FILE__, $sql);
}
$i = 10;
while( $row = $db->sql_fetchrow($result) )
{
$sql = "UPDATE ". LINK_CATEGORIES_TABLE ."
SET cat_order = $i
WHERE cat_id = ". $row['cat_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update order fields', '', __LINE__, __FILE__, $sql);
}
$i += 10;
}
}
// END
// --------------------------
kann mir wer helfen?