query($sql); if ($insertPageContent) { if (move_uploaded_file($image1_tmp, $image1_target_file) && move_uploaded_file($image2_tmp, $image2_target_file) && move_uploaded_file($image3_tmp, $image3_target_file)) { chmod($image1_target_file, 0777); chmod($image2_target_file, 0777); chmod($image3_target_file, 0777); showSweetAlert('success', 'Data Saved'); } else { @unlink($image1_target_file); @unlink($image2_target_file); @unlink($image3_target_file); $deleteLastRecord = $connection->query("DELETE FROM `page` WHERE `id` = $connection->insert_id"); showSweetAlert('error', 'Unable to upload images'); } } else { echo $sql; //showSweetAlert('error', sanitizeData($sql)); } } } ?> Tech4Biz - Category Manage

Services Manager

Add New Service
Added Services List
query("SELECT `page`.*, `sub_category`.`name` AS `sub_category_name`,`sub_category`.`category_id` as `category_id` FROM `page` INNER JOIN `sub_category` ON `page`.`sub_category_id`= `sub_category`.`id`"); if ($getCategories) { while ($category = $getCategories->fetch_object()) { ?>
Service Name Created At Status
sub_category_name ?> created_at ?> status == 1 ? ' Active' : 'Inactive' ?>