exec($sql); if ($result !== false) { echo "Record updated successfully"; } else { echo "Error updating record: " . $pdo->errorInfo()[2]; } ?>In this example, the price of a product is updated in the "products" table of a database where the product ID matches the specified value. The function exec is used here as an alternative to mysqli_query. Also, PDO is used instead of mysqli for database connection. The editfieldval function is a built-in PHP function and is not part of any package library. It is used with SQL statements and database connections to modify records in a database.