Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

AMcCarrick on "Is get_results Already Escaped?"

$
0
0

Question regarding the get_results method on the wpdb class...

Is the query entered into the get_result method escaped by get_results or should I be placing a call to the prepare method inside of get_results?

$wpdb->get_results($sql);

or

$wpdb->get_results($wpdb->prepare($sql));

Digging through the wpdb class file it seems like no, but would like some assurance.


Viewing all articles
Browse latest Browse all 8245

Trending Articles