Hi, i have the following in a php script that is currently working, HOWEVER...
I would like to add an extra statement to the query_set to update another table called aliases.
I would like the query_unset to remove what was added to the aliases table when called as well.
I tried the following for query_set and it did not work
so I'm having problems with everything after the and on the query_set. I'm not sure how to join more than one query.
thanks very much in advance, Paul
Code:
'default' => array('query_set' => 'REPLACE INTO vacation (email, subject, body, domain, created, active) VALUES (\U, \S, \M, \D, NOW(), 1)',
'query_unset' => 'UPDATE vacation SET active=0 WHERE email=\U',
'query_get' => 'SELECT subject, body, active AS vacation FROM vacation WHERE email=\U',
'hordeauth' => 'full')));
I would like to add an extra statement to the query_set to update another table called aliases.
I would like the query_unset to remove what was added to the aliases table when called as well.
I tried the following for query_set and it did not work
Code:
'query_set' => 'REPLACE INTO vacation (email, subject, body, domain, created, active) VALUES (\U, \S, \M, \D, NOW(), 1) and REPLACE INTO alias (address, goto, domain, created, active) VALUES (\U, some_alias, \D, NOW(), 1) WHERE address=\U',
so I'm having problems with everything after the and on the query_set. I'm not sure how to join more than one query.
thanks very much in advance, Paul