global $wpdb;
first?
]]>
null
here to use the auto increment value. The ID used will be in $wpdb->insert_id
. And/or provide a third format argument, an array of 3 '%d'
Be sure your code actually executes. Depending on context, echo out something or use error_log(), or anything else to prove your code executed.
]]>