This was my first thought:
$cur = array ();
$new = array ();
$query = 'select * from `table` limit 12';
$result = mysql_query ($query);
while (($row = mysql_fetch_assoc ($result)) !== false) {
$cur[] = $row['ArticleNR'];
$new[] = $row['ArticleNR'];
}
shuffle ($cur);
shuffle ($new);
for ($i = 1; $i < count ($cur); $i++) {
$query = 'update `table` set `ArticleNR` = "' . $new[$i] . '" where `ArticleNR` = "' . $cur[$i] . '" limit 1';
$result = mysql_query ($query);
}
But I can tell you already that it doesn't work, haha. I posted it here so that others could see it and maybe think of a way to fix it. 😃 Because I don't know how. 🙁