What is the correct syntax for multiplying a field value by 1000 in a MySQL query using PHP?

To multiply a field value by 1000 in a MySQL query using PHP, you can use the SQL `UPDATE` statement along with the `*` operator to perform the multiplication operation. You can achieve this by setting the field value to itself multiplied by 1000 within the query. This will update the field value with the result of the multiplication.

<?php
// Assuming $conn is the MySQL database connection
$fieldValue = 10; // Example field value

$sql = "UPDATE table_name SET field_name = field_name * 1000 WHERE condition";
$result = mysqli_query($conn, $sql);

if ($result) {
    echo "Field value multiplied by 1000 successfully.";
} else {
    echo "Error updating field value.";
}
?>