There are only two columns and I want to UPDATE only if menu_id
exists. Otherwise I want to insert a new row. Here's my query:
REPLACE `dol_subs_menu_access`
SET `menu_id` = '{$aVars['menu_item']}',
`mlevels` = '{$sMemLevels}'
This creates a new row everytime. Is there something I'm missing?