Hello David,
$SQL =”INSERT INTO ".$wpdb->prefix."core_orders (user_id, order_id, order_ip, order_date, order_time, order_data, order_items, order_email, order_shipping, order_tax, order_total, order_status, user_login_name, shipping_label, payment_data) VALUES (‘”.$oData[“userID”].”‘, ‘”.$oData[“orderID”].”‘, ‘”.$oData[“IP”].”‘, ‘”.$oData[“date”].”‘, ‘”.$oData[“time”].”‘, ‘”.$oData[“data”].”‘, ‘”.$oData[“items”].”‘, ‘”.$oData[“email”].”‘, ‘”.$oData[“shipping”].”‘, ‘”.$oData[“tax”].”‘, ‘”.$oData[“total”].”‘, ‘3’, ‘”.$oData[“username”].”‘, ‘”.$oData[“shipping_label”].”‘, ‘”.$oData[“paydata”].”‘)”;
".$wpdb->prefix."core_orders
user_id
order_id
order_ip
order_date
order_time
order_data
order_items
order_email
order_total
order_status
user_login_name
Is this the correct way to do this or are we doing something wrong here? At this moment it doesn’t work.
This reply is for PremiumPress customers only.
1,092
Views
16
Replies
Copyright © 2010-2025 PremiumPress Limited.
Hello David,
$SQL =”INSERT INTO
".$wpdb->prefix."core_orders
(user_id
,order_id
,order_ip
,order_date
,order_time
,order_data
,order_items
,order_email
, order_shipping, order_tax,order_total
,order_status
,user_login_name
, shipping_label, payment_data) VALUES (‘”.$oData[“userID”].”‘, ‘”.$oData[“orderID”].”‘, ‘”.$oData[“IP”].”‘, ‘”.$oData[“date”].”‘, ‘”.$oData[“time”].”‘, ‘”.$oData[“data”].”‘, ‘”.$oData[“items”].”‘, ‘”.$oData[“email”].”‘, ‘”.$oData[“shipping”].”‘, ‘”.$oData[“tax”].”‘, ‘”.$oData[“total”].”‘, ‘3’, ‘”.$oData[“username”].”‘, ‘”.$oData[“shipping_label”].”‘, ‘”.$oData[“paydata”].”‘)”;Is this the correct way to do this or are we doing something wrong here? At this moment it doesn’t work.
Members Only Content
This reply is for PremiumPress customers only.
Login Now