Jump to content

help spot the error in this little piece of code


djddc

Recommended Posts

$sql_update_categories = $db->query("UPDATE " . DB_PREFIX . $table_name . " SET

name='" . $db->rem_special_chars($_POST['name'][$key]) . "',

" . (($table_name == 'categories') ? "minimum_age='" . intval($_POST['minimum_age'][$key]) . "',

order_id=" . $order_id . ", custom_skin='" . $_POST['default_theme'][$key] . "', parent_id='".(($_POST["cat".$key]!="")?$_POST["cat".$key]:$_POST['parent_id'])."' WHERE category_id=" . $value);

 

I get an parse error but i can't seem to spot it .... anyone pls ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.