-1
I’m trying to insert date in my BD but sql calculates the result is always 1997 in the fields I tested as "date" and did not insert "varchar e text" resulted in a subtraction calculation of the current date
$conn = new PDO('mysql:host=localhost;dbname=data', 'root');
$query = 'INSERT INTO codes (code,dt) VALUES ('.$generator.','.$data_atual.')';
?>
@Francis a simple question and this uproar, if you don’t want to help, don’t help simple !!
– David Jesus