I have this code on my PHP:
$query = "DELETE FROM ponteved_admincs." . $_GET['servidor'] . " WHERE auth = '" . $_GET['auth'] . "';UPDATE ponteved_foroipb.members SET member_group_id = 3 WHERE member_id = '" . $_GET['foroid'] . "' LIMIT 1";
mysqli_multi_query($con,$query);
This code removes from DB the specified user passed by a GET, and changes user groups on the IPB forum. Is there a way to do variables in a query if I try to do it on a MYSQL EVENT?
I have this on a MysqlEVENT:
DELETE FROM ponteved_admincs.27015 WHERE DATE(vencimiento) <= DATE(NOW())
Example that I'd like to do, but I don't know:
var @getuserid = SELECT `foroid` FROM `27015` WHERE `auth` = 'Green';
DELETE FROM ponteved_admincs.27015 WHERE DATE(vencimiento) <= DATE(NOW())
UPDATE ponteved_foroipb.members SET member_group_id = 3 WHERE member_id = '@getuserid'
Thanks!