srinivas6203 Posted August 15, 2008 Share Posted August 15, 2008 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 Quote Link to comment Share on other sites More sharing options...
tibberous Posted August 15, 2008 Share Posted August 15, 2008 LOL I like saving lines but thats just stupid. This is wrong: if(isset(!$_POST['peerdetails'] && !$_POST['userconfig'])) That's like the worst thing I've ever seen wrote - and thats coming from a guy who just triple-nested tetrinary operators... Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted August 15, 2008 Share Posted August 15, 2008 that's some really sad formatting :-\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.