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: 
`GROUP` and `REPEAT` are reserved keywords in MySQL so you have to "escape" it with backticks:

```
`group` = '$group'

`repeat` = '...'

```

Also I'm making an assumption here, but you shouldn't wrap `$key` in quotes because it is an integer value. Also make sure you type cast it to an int by doing `int($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.