AnsweredAssumed Answered

Prevent save

Question asked by YellowTulips YellowTulips on Aug 6, 2015
Latest reply on Dec 8, 2016 by Danny Mulvihill
Is there a way to make my entry not save?

  
if ($points >= $cost) {

    $GLOBALS['log']->fatal("DEBUG: if statement");
    $ResultPoints = $points - $cost;
    $queryResult = $GLOBALS['db'] -> query("
        UPDATE 'contacts_cstm'
        SET 'points_c' = $ResultPoints
        WHERE 'id_c' = '".$varContactId."'");


else {

    $GLOBALS['log']->fatal("DEBUG: else statement");
    // stop save here
}
6.5.21 CE running on Local machine using Xampp, PHP Version 5.6.11

Outcomes