Wordpress: wpdb->insert VERSUS wpdb->prepare(wpdb->query("INSERT...

Posted by Parris on Stack Overflow See other posts from Stack Overflow or by Parris
Published on 2010-03-05T18:34:54Z Indexed on 2010/03/14 22:15 UTC
Read the original article Hit count: 698

Filed under:
|
|
|

Hello,

I am wondering if wordpress' insert function also adds slashes to data. If it doesn't it would seem that the prepare query method would be better to prevent against SQL injection. I tried looking the issue up in there codex/api; however, it seems undocumented. Thanks!

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about php