Driimer Posted October 9, 2009 Share Posted October 9, 2009 Lets say I have script like this: <?php connect database $shoppings = ('1000') $earnings = ('1000') I want to place here IF $shoppings = $earnings;exit; mysql_query: Bla-bla-bla ?> What kind of IF $shoppings = $earnings;exit; Could fit there so it would quit script running incase they are equal, before it gets to mysql_query? Link to comment https://forums.phpfreaks.com/topic/177142-solved-if-shoppings-earnings-then-exit-php/ Share on other sites More sharing options...
seventheyejosh Posted October 9, 2009 Share Posted October 9, 2009 if($shopping==$earning){ exit; }//end if Link to comment https://forums.phpfreaks.com/topic/177142-solved-if-shoppings-earnings-then-exit-php/#findComment-934048 Share on other sites More sharing options...
Driimer Posted October 10, 2009 Author Share Posted October 10, 2009 edit, my mistake Im kinda sleeping already Works fine. Thanks seventheyejosh Link to comment https://forums.phpfreaks.com/topic/177142-solved-if-shoppings-earnings-then-exit-php/#findComment-934062 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.