skip to Main Content

Enter time stamp into MySQL column – PHP Versions

I've recently upgraded MySQL to version 5.7.35 and PHP to version 7.4.21. This PHP script is failing to enter the data into 'my_table' $hoje = date("Y-m-d H:i:s"); $stmt = $db->prepare("INSERT INTO my_table(teste_id,data) VALUES (:ftesteid, :fdata)"); $stmt->bindParam(':ftesteid', $testeMaisRecente, PDO::PARAM_INT); $stmt->bindParam(':fdata', $hoje,…

VIEW QUESTION
Back To Top
Search