Inserting a Date and Time value to a MySql from PHP
- by DomingoSL
Hello i want to send to a MySQL data base a date and time in a format compatible with the mysql DateTime format, wich is: 0000-00-00 00:00:00 ...
Im using this code who brings the date and time from a PHP command:
$insert = "INSERT INTO sms (ref, texto, fecha)
VALUES ('".$_POST['usuario']."', '".$_POST['sms']."', '".date(DATE_ATOM,…