meltingpoint Posted December 22, 2011 Share Posted December 22, 2011 I want to check to see if two variables are NOT empty and if so- assign a new variable if(!empty($net_op_call) and !empty($f_name)){ $net_start = 'Yes'; } Is this syntax correct as it is not setting the variable - $net_start Quote Link to comment https://forums.phpfreaks.com/topic/253706-if-and-syntax-problem/ Share on other sites More sharing options...
meltingpoint Posted December 22, 2011 Author Share Posted December 22, 2011 Syntax good- another part of code was faulty. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/253706-if-and-syntax-problem/#findComment-1300621 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.