Stopping a php mysql script?

Affs Dsfs

New member
haiii
what is the php script to stop a script.. ( i mean command or syntax)
i have an if else statement in my scriptt
nd if the condition is not false.. ( or it is not listed in if , it is listed in else ) then i want php to stop script their.. nd leav the rest of the scipt..
hw to do that ?
if($quantity > 0) {
for($i = 0; $i < $quantity; $i++) {
//add one record here

if ($sales >= $quantity)
mysql_query($query) or die('Error, insert RECORD failed') ;
else echo $error, mysql_close() ;


}
}
echo '' ;
 
Back
Top