djddc Posted March 13, 2010 Share Posted March 13, 2010 $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 ? Link to comment https://forums.phpfreaks.com/topic/195106-help-spot-the-error-in-this-little-piece-of-code/ Share on other sites More sharing options...
herghost Posted March 13, 2010 Share Posted March 13, 2010 Please wrap your code in code blocks, what line is the error on? Link to comment https://forums.phpfreaks.com/topic/195106-help-spot-the-error-in-this-little-piece-of-code/#findComment-1025593 Share on other sites More sharing options...
djddc Posted March 13, 2010 Author Share Posted March 13, 2010 solved , i'll wrap the code next time , sorry. Link to comment https://forums.phpfreaks.com/topic/195106-help-spot-the-error-in-this-little-piece-of-code/#findComment-1025597 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.