回答編集履歴
1
edit
    
        answer	
    CHANGED
    
    | @@ -3,5 +3,8 @@ | |
| 3 3 | 
             
            mysqli_stmt::execute(): bool
         | 
| 4 4 |  | 
| 5 5 | 
             
            この通り、mysqli_stmt::execute()はパラメータを取るように実装されていません。
         | 
| 6 | 
            +
            エラーの通りですね。
         | 
| 7 | 
            +
            > mysqli_stmt::execute() expects exactly 0 parameters, 1 given 
         | 
| 8 | 
            +
            mysqli_stmt::execute()はパラメータを0期待しているが、1与えられた(数の話)
         | 
| 6 9 |  | 
| 7 10 | 
             
            上記ドキュメントにもサンプルコードがありますが、パラメータへの値セットは[mysqli_stmt::bind_param()](https://www.php.net/manual/ja/mysqli-stmt.bind-param.php)で行います。
         | 
