- $globals->xdb->execute("REPLACE INTO groupex.evenements
- SET eid={?}, asso_id={?}, organisateur_uid={?}, intitule={?},
- paiement_id = {?}, descriptif = {?},
- debut = {?}, fin = {?},
- membres_only = {?}, advertise = {?}, show_participants = {?},
- short_name = {?}, deadline_inscription = {?}, noinvite = {?}",
- $evt['eid'], $evt['asso_id'], $evt['organisateur_uid'], $evt['intitule']
- , $evt['paiement_id'], $evt['descriptif'],
- $evt['debut'], $evt['fin'],
- $evt['membres_only'], $evt['advertise'], $evt['show_participants'],
- $evt['short_name'], $evt['deadline_inscription'], $evt['noinvite']);
+ XDB::execute('INSERT INTO group_events (eid, asso_id, uid, intitule, paiement_id,
+ descriptif, debut, fin, show_participants,
+ short_name, deadline_inscription, noinvite,
+ accept_nonmembre, subscription_notification)
+ VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})
+ ON DUPLICATE KEY UPDATE asso_id = VALUES(asso_id), uid = VALUES(uid), intitule = VALUES(intitule),
+ paiement_id = VALUES(paiement_id), descriptif = VALUES(descriptif), debut = VALUES(debut),
+ fin = VALUES(fin), show_participants = VALUES(show_participants), short_name = VALUES(short_name),
+ deadline_inscription = VALUES(deadline_inscription), noinvite = VALUES(noinvite),
+ accept_nonmembre = VALUES(accept_nonmembre), subscription_notification = VALUES(subscription_notification)',
+ $evt['eid'], $evt['asso_id'], $evt['uid'],
+ $evt['intitule'], $evt['paiement_id'], $evt['descriptif'],
+ $evt['debut'], $evt['fin'], $evt['show_participants'],
+ $evt['short_name'], $evt['deadline_inscription'],
+ $evt['noinvite'], $evt['accept_nonmembre'], $evt['subscription_notification']);