\n", $i18n_domain);
}
else if ($_POST['do_choose']) {
$file = $_POST['file'];
$thetable = $wpdb->prefix . $TABLE_NAME[TABLE_ARTIST_FILE_DOWNLOAD];
$query = $wpdb->prepare("INSERT INTO $thetable (file_name, download_count)
VALUES (%s, 0)", $file);
$result = $wpdb->query($query);
if($result === 0 || $result === FALSE) {
wp_die( sprintf(__('An error occurred while trying to perform a query: "%s"', $i18n_domain), $query) );
} else {
// successfully inserted file to upload
printf( __("File added to the database: '%s'
\n", $i18n_domain), $file);
}
echo '