''); $fldArray = array("faq_id" => $id); $orderArray=array(); $orderType=''; $arr=dataSelect($table,$dataArray,$fldArray,$extra="",$orderArray,$orderType); $faq_status=$arr[0]['faq_status']; $faq_last_modified=$arr[0]['faq_last_modified']; $faq_title=$arr[0]['faq_title']; $faq_content=$arr[0]['faq_content']; $faq_status=$arr[0]['faq_status']; $faq_category=$arr[0]['faq_category']; $faq_image=$arr[0]['faq_image']; if($_POST['submit']=='Save') { $table=TABLE_FAQ; $hidden_faq_id=$_REQUEST['hidden_faq_id']; $faq_status=trim(strip_tags($_POST['faq_status'],ENT_QUOTES)); $faq_last_modified=DATETIME; $faq_title=trim(strip_tags($_POST['faq_title'],ENT_QUOTES)); $faq_content=dataPrepare($_REQUEST['faq_content']); $faq_category=dataPrepare($_REQUEST['faq_category']); $faq_stat=trim(strip_tags($_POST['faq_status'],ENT_QUOTES)); if($faq_status==''){ $faq_status='Active'; }else{ $faq_status=$faq_stat; } $dataArray = array("faq_category"=>$faq_category,"faq_status"=>$faq_status,"faq_last_modified"=>$faq_last_modified,"faq_title"=>$faq_title,"faq_content"=>$faq_content,"faq_status"=>$faq_status); if($faq_title!='' && $faq_content!='' && $faq_category!=''){ /*Edit*/ if($hidden_faq_id!=''){ $fldArray = array("faq_id" => $hidden_faq_id); dataUpdate($table,$dataArray,$fldArray); redirect('show_faq.php'); } }else{ if($faq_content=='') { $error=NO_DESC; } if($faq_title=='') { $error=NO_TITLE; } if($faq_category=='') { $error='Please Select A Category.'; } } } ?>
Edit Faq
Date Time
Sub category ''); $fldArray_select = array("page_parent" =>'7'); $orderArray_select=array(); $orderType_select=''; $arr_select=dataSelect($table_select,$dataArray_select,$fldArray_select,$extra_select="",$orderArray_select,$orderType_select); ?>
Question
Description show(); ?>
 
Status