JSFiddle - React, Tailwind, and code Playground
by Nicolas PUJOL
JavaScript
var a = [
["http://afflight.postaffiliatepro.com/scripts/c2q2a879kk?a_aid=ghorg12110&a_bid=6e75ca12&data1=[USER_ID]", "Voiture à gagner", "40"],
["http://afflight.postaffiliatepro.com/scripts/c2q2a879kk?a_aid=ghorg12110&a_bid=b3cfd535&data1=[USER_ID]", "TV SONY 4K", "30"],
["http://afflight.postaffiliatepro.com/scripts/c2q2a879kk?a_aid=ghorg12110&a_bid=e9051c69&data1=[USER_ID]", "Tests et Echantillons Carambar", "30"],
];
var q = "INSERT INTO `wc_offres` (`id`, `type`, `titre`, `url`, `img`, `restant`, `reversement`, `description`, `duree`) VALUES \n";
for (i = 0; i < a.length; i++) {
q += "(NULL, 'inscription', '" + a[i][1] + "', '" + a[i][0] + "', '', 1, " + (parseInt(a[i][2]) * 25) + ", '<b>Compléter le formulaire</b>', 0),\n";
}
console.log(q);