Jump to content

[SOLVED] If $shoppings = $earnings then exit PHP


Driimer

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.