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 Link to comment https://forums.phpfreaks.com/topic/119794-php-mysql-update-help/ 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... Link to comment https://forums.phpfreaks.com/topic/119794-php-mysql-update-help/#findComment-617166 Share on other sites More sharing options...
MasterACE14 Posted August 15, 2008 Share Posted August 15, 2008 that's some really sad formatting :-\ Link to comment https://forums.phpfreaks.com/topic/119794-php-mysql-update-help/#findComment-617169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.