WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// Insert new row into database$database->query('INSERT INTO `'.TABLE_PREFIX.'mod_'.$mod_name.'_items` (`section_id`, `page_id`, `position`) VALUES ('.(int)$section_id.', '.(int)$page_id.', '.(int)$position.')');
// Insert new row into database $sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_'.$mod_name.'_items` SET ' . '`section_id` = '.(int)$section_id.', ' . '`page_id` = '.(int)$page_id.', ' . '`title` = \'\', ' . '`link` = \'\', ' . '`description` = \'\', ' . '`position` = '.(int)$position.', ' . '`scheduling` = \'\', ' . '`main_image` = \'\', ' . '`modified_when` = \''.time().'\', ' . '`modified_by` = '.(int)$admin->get_user_id().' '; // Check if there was a db error if (!$database->query($sql)){ $admin->print_error($database->get_error()); }