update('Price') ->set('immediate', 'immediate * '.$multiplier); $q->execute(); header('Location: ../?q=graydon/prix'); }elseif(isset($_REQUEST['normal'])){ $multiplier = $_REQUEST['normal']; $q = Doctrine_Query::create() ->update('Price') ->set('normal', 'normal * '.$multiplier); $q->execute(); header('Location: ../?q=graydon/prix'); }elseif(isset($_REQUEST['superflash'])){ $multiplier = $_REQUEST['superflash']; $q = Doctrine_Query::create() ->update('Price') ->set('superflash', 'superflash * '.$multiplier); $q->execute(); header('Location: ../?q=graydon/prix'); }elseif(isset($_REQUEST['col'])){ $col = $_REQUEST['col']; $q = Doctrine_Query::create() ->update('Price') ->set($col, $_REQUEST['value']) ->where('id = ?', $_REQUEST['id']); $price_id = $q->execute(); print $_REQUEST['value']; } ?>