1$idresult = $conn->query("SELECT id FROM pictures");
2
3while ($row = $idresult->fetch_assoc()){
4 mysqli_query($conn, "UPDATE pictures SET UniqueKey = '$UniqueKey' WHERE id = " . $row['id'];
5}
1$idresult = $conn->query("SELECT id FROM pictures");
2
3while ($row = $idresult->fetch_assoc()){
4 mysqli_query($conn, "UPDATE pictures SET UniqueKey = '$UniqueKey' WHERE id = " . $row['id']);
5}