Got the lower portion here sorted, but now there\'s an issue when it inserts the record. I have the NULL value for file formatted as %s fo
NULL
file
%s
If you want to get the last error and last query you can use this properties of $wpdb object:
$wpdb->last_error
will show you the last error, if you got one.
$wpdb->last_query
will assist you with showing the last query (where the error occurred)
I hope this will help you out.