HI
$update = "update sip set outbound_cid = '" . $_POST['outcid'] . "',never_override_cid = '" . $_POST['keepcid'] . "',max_chan = '".$_POST['maxchans'] . "',disable_trunk = '".$_POST['disabletrunk'] . "',monitor_trunk_failures = '".$_POST['failtrunk']. "',monitor_trunk_failures_stat = '" . $_POST['failtrunk_enable'] . "',dial_rules = '" . $_POST['dialrules']."',dialrules_wizard = '".$_POST['autopop']."',outbound_dial_prefix = '".$_POST['dialoutprefix']."',trunk = '".$_POST['channelid']."',peer_details = '".$_POST['peerdetails']."',user_context = '".if(isset(!$_POST['peerdetails'] && !$_POST['userconfig'])) $username_c."',user_details = '".$_POST['userconfig']."',register_string = '".$_POST['register']."' where id = '".$trunk_id."'";
In the above can u find out any error. I got a error like
Parse error: syntax error, unexpected T_IF
Thanq