Question: using mobile detection (js or php), is it possible to display top navi made for mobile only?
also i see a lot of mobile detection in php - where is it supposed to be placed?

```
{php}
function isMobileBrowser($user_agent = '') {
  foreach (array('iPhone','Android','Windows CE', 'PPC', 'Smartphone', 'IEMobile', 'Opera Mini') as $mobile_browser_ua_snippet) {
    if (stristr($user_agent, $mobile_browser_ua_snippet)) {
      return true;
    }
  }
  return false;
}
{/php}

{if isMobileBrowser($_SERVER['HTTP_USER_AGENT'])} 
{include file="templates/layouts/zones/mobileMenu.html"}
{/if}

```

now i got error: syntax error: unbalanced parenthesis in if statement => I am not sure abt that

Answer: 
Have you tried changing the query to:

```
mysql_query("UPDATE `upcoming` SET `title` = '$title', `date` = '$date', `repeat` = '$repeat', `location` = '$location', `location_link` = '$location_link', `group` = '$group', `group_link` = '$group_link', `notes` = '$notes', `enabled` = '$enabled' WHERE `id` = '$key' LIMIT 1") or die(mysql_error());

```

Edit: And as others have stated; you are using reserved words. I recommend always using the ` symbol. (This can be found at the top left for most keyboards: under the escape key, above the tab key, to the left of the number 1 key.)
Repeat is a mySQL reserved word: <http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html>

Try surrounding your column names with backticks.