I'm getting this error ten times on a page where I'm using $wpdb->prepare in ten instances.
What am I doing incorrectly with this function?
Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder.
$results = $wpdb->get_var( $wpdb->prepare("SELECT ItemID, Price FROM $table WHERE ItemID = $quanid GROUP BY Price ORDER BY COUNT(*) DESC LIMIT 1", 1 ));
Aucun commentaire:
Enregistrer un commentaire