- $ret = XDB::execute("INSERT INTO #paiement#.paiements VALUES
- ( {?}, {?}, {?}, '',
- {?}, {?}, {?},
- {?}, {?}, {?} )
- ",
- $id, $this->titre, $this->site,
- $this->montant, $this->montant_min, $this->montant_max,
- $this->user->bestEmail(), $this->msg_reponse, $this->asso_id);
+ $flags = ($this->donation ? 'donation' : '');
+ $ret = XDB::execute('INSERT INTO payments (id, text, url, flags, amount_def, amount_min, amount_max, mail, confirmation, asso_id)
+ VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})',
+ $id, $this->titre, $this->site, $flags, $this->montant, $this->montant_min,
+ $this->montant_max, $this->user->bestEmail(), $this->msg_reponse, $this->asso_id);