回答編集履歴
2
エラーメッセージを追記
    
        answer	
    CHANGED
    
    | @@ -1,4 +1,7 @@ | |
| 1 1 | 
             
            下記の様に、`registration.php`を修正すると動作しました。`hobby`に値を設定していないのがマズいのではないでしょうか。
         | 
| 2 | 
            +
            エラーメッセージ:
         | 
| 3 | 
            +
            `Invalid parameter number: number of bound variables does not match number of tokens in ~/registration.php on line 25`
         | 
| 4 | 
            +
             | 
| 2 5 | 
             
            あと、接続文字列には下記の様に文字コードを設定してあげると良いですよ。
         | 
| 3 6 | 
             
            `$dsn = 'mysql:dbname=test;host=localhost;charset=utf8';`
         | 
| 4 7 |  | 
1
誤字の修正
    
        answer	
    CHANGED
    
    | @@ -17,7 +17,7 @@ | |
| 17 17 | 
             
                $tel = "012-345-6677";
         | 
| 18 18 | 
             
                $gender = "male";
         | 
| 19 19 | 
             
                $hobby = "tennis";
         | 
| 20 | 
            -
                $ | 
| 20 | 
            +
                $shumi= "baseball";
         | 
| 21 21 | 
             
                //ここに処理を記載
         | 
| 22 22 | 
             
                $stmt = $pdo->prepare("INSERT INTO member (yourname, live, tel, gender, hobby, shumi) VALUES (:yourname, :live, :tel, :gender, :hobby, :shumi)");
         | 
| 23 23 | 
             
                $stmt->bindValue(':yourname', $yourname, PDO::PARAM_STR);
         | 
