Files
php-db-question/Ex04.php
2026-10-28 14:24:02 +09:00

14 lines
498 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* [Ex04 UPDATEクエリの実行]
*
* TODO:
* 1. HTMLフォームからPOSTで送信された "salary"(給与)と "id"(従業員ID)を受け取り、
* "employees" テーブルの該当レコードの "salary" を更新する UPDATE クエリを実行してください。
*
* 2. PDO の prepare() を用い、パラメータバインディングで安全に値を更新すること。
*
* 3. クエリ実行後、「更新しました」と表示すること。
*/