I have tried to fix the query but it still doesn't work
This is the error:
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO user_notifications (
id,
usr_id,
notification_message,
sender`,' at line 3从 account_requests 中删除,其中
usrs_id
= '' ANDaccount_requesting
= '2';INSERT INTO user_notifications (id,
usr_id,
notification_message,
sender, show,
date) VALUES (NULL, '', 'Successful account upgrade. You are now a Tutor', 'Codeg Account Wizard', 1, CURDATE()); INSERT INTO usrs_acc_type (
usr_usr_id,
account_type_type_id) VALUES (, 2); UPDATE
transactionSET
order_status= 'Completed' WHERE
usr_id= AND
purchase_type= 'Account Upgrade' AND
order_status= 'Pending' AND
item` = 'Tutor Account';文件名:C:\Users\Supremekhaoz\Downloads\Dropbox\htdocs\codeg\system\database\DB_driver.php
行号:330
查询:
DELETE FROM account_requests WHERE `usrs_id` = '$usr_id' AND `account_requesting` = '$type_id';
INSERT INTO user_notifications (`id, `usr_id`, `notification_message`, `sender`, show, `date`) VALUES (NULL, '$usr_id', 'Successful account upgrade. You are now a $type', 'Codeg Account Wizard', 1, CURDATE());
INSERT INTO usrs_acc_type (`usrs_usr_id`, `account_type_type_id`) VALUES ($usr_id, $type_id);
UPDATE `transaction` SET `order_status` = 'Completed' WHERE `usr_id` = $usr_id AND `purchase_type` = 'Account Upgrade' AND `order_status` = 'Pending' AND `item` = '$type Account';