Revision: 9281
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 28, 2008 10:55 by Tate
Initial Code
$field1 = "Andy Peatling"; $field2 = "It's like that, and that's the way it is."; $wpdb->query( $wpdb->prepare( "INSERT INTO $wpdb->sometable( id, field1, field2 ) VALUES ( %d, %s, %s )", $_POST['id'], $field1, $field2 );
Initial URL
http://apeatling.wordpress.com/2008/06/25/prepare-dont-escape/
Initial Description
Initial Title
Wordpress "prepare" function for inserting into database
Initial Tags
sql, wordpress
Initial Language
PHP