query($customactionsql);
if($customactionresult == false)
{
include('themes/'.$theme.'/header.php');
$errormessage = "Error Message
- Error while inserting the record
" ;
echo $errormessage;
}
//print_r($customactionsql);
}elseif($mode == "edit")
{
$updatecasql = "update customaction set subject='".$subject."',content='".$body."' where cvid=".$cvid;
$updatecaresult = $adb->query($updatecasql);
if($updatecaresult == false)
{
include('themes/'.$theme.'/header.php');
$errormessage = "Error Message
- Error while inserting the record
" ;
echo $errormessage;
}
//print_r($updatecasql);
}
}
header("Location: index.php?action=index&module=$cvmodule&viewname=$cvid");
?>