Possible Duplicate:
$wpdb->prepare() warning in WordPress 3.5
将Wordpress更新为3.5后,我面临一个错误,我知道有错误,但我无法修复。
这是代码:
$wpdb->prepare("INSERT INTO $orders_table ( theme_name, user_id, order_status, order_verified, order_date, order_payment_method, order_ip )VALUES ( %s, %d, %d, %d, %s, %s, %s)",$theme_name, $user_id, $order_status, $order_verified, $date_now, $order_payment_method, $ip)
$wpdb->prepare("SELECT COUNT(*) FROM $orders_table where theme_name=\'$theme_name\' && order_verified = \'1\';")
$wpdb->prepare("SELECT COUNT(*) FROM $orders_table where theme_name=\'$theme_name\' && order_verified = \'1\' && DAY(order_date) = \'$fa_today\' && MONTH(order_date) = \'$fa_this_month\' && YEAR(order_date) = \'$fa_this_year\';")
有人能更新上面的代码吗?
谢谢