validation and data add to a db table

后端 未结 1 1609
孤城傲影
孤城傲影 2021-01-07 00:34

the questions I have asked earlier pdo to retrieve data and populate a record was about the input mask now i need to validate the user input and add what has been entered t

1条回答
  •  没有蜡笔的小新
    2021-01-07 01:04

    The problem here is that you never executed for the INSERT

    Add this to it:

    $stmt -> execute();
    

    which is why no errors return, because there are none; just something "missing" ;-)

    Reference:

    • http://php.net/pdo.prepared-statements

    0 讨论(0)
提交回复
热议问题