There is a code, it is generally working, it has been used more than once, everything was fine
$data = array( 'data' => "$date", 'name' => "$name", 'phone' => "$phone", 'mail' => "$mail", 'tovar' => "$tovar"); $STH = $DBH->prepare("INSERT INTO orders (data) values (:date)"); $STH->execute($data); echo "data=".$date." name= ".$name." phone= ".$phone." mail= ".$mail." tovar=".$tovar; At the end, echo outputs everything, does not generate errors, but does not write, but if you replace $STH with
$STH = $DBH->prepare("INSERT INTO orders ( data,name,phone,mail,tovar ) values ( '$date','$name','$phone','$mail','$tovar' )"); Everything is working
Есть код,он вообще рабочий,не раз применял его......но не записывает- you would decide - it is working and there is no problem or not, then it cannot be working, in principle, and you could not do it more than once apply))) - Alexey ShimanskyNOT NULL- Dmitriy Simushev