Search Posts

Author: user3672303

How to select all rows, and update field in row within the same while loop?

how to – How to select all rows, and update field in row within the same while loop? I’m trying to query all data, manipulate 2 of the fields to create a new value, and then update an existing field (woocat) within the same row with this new value. It runs without error, but no updating happens. What am I missing? # Get all data $query = “SELECT * FROM cities”; $result = mysqli_query($con, $query); […]