Answers for "php mysql update all rows in table random values"

PHP
0

php mysql update all rows in table new values

$idresult = $conn->query("SELECT id FROM pictures");

while ($row = $idresult->fetch_assoc()){
   mysqli_query($conn, "UPDATE pictures SET UniqueKey = '$UniqueKey' WHERE id = " . $row['id'];
}
Posted by: Guest on December-31-2020
0

php mysql update all rows in table random values

$idresult = $conn->query("SELECT id FROM pictures");

while ($row = $idresult->fetch_assoc()){
   mysqli_query($conn, "UPDATE pictures SET UniqueKey = '$UniqueKey' WHERE id = " . $row['id']);
}
Posted by: Guest on December-31-2020

Code answers related to "php mysql update all rows in table random values"

Browse Popular Code Answers by Language