probleme après submit

Issues related to forms.
Post Reply
dahdah
 
 
Posts: 13
Joined: Wed Oct 18, 2017 7:58 pm

probleme après submit

Post by dahdah » Fri Oct 27, 2017 7:48 pm

j'ai réalisé un forum après click sur submit les donneés sont envoyés à la base des donneés mais il sort ce message
**********************

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\AppServ\www\exmpl\index.php on line 114

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\AppServ\www\exmpl\index.php on line 115
*******************
voila le fichier index.php ou l'érreure apparetre
mysqli_query($db, "INSERT INTO $mysql_table (`DATESTAMP`, `TIME`, `IP`, `BROWSER`)
VALUES ('".date("Y-m-d")."',
'".date("G:i:s")."',
'"
.$_SERVER['REMOTE_ADDR']."',
'".$_SERVER['HTTP_USER_AGENT']."')")or die('Failed to insert data into table!<br>'.mysqli_error($db));
$id = mysqli_insert_id($db);
foreach($form_data as $name=>$value)

User avatar
Pablo
 
Posts: 12573
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: probleme après submit

Post by Pablo » Fri Oct 27, 2017 7:53 pm

You can add the following code to the start of the page to define a timezone:

Code: Select all

<?php
date_default_timezone_set('America/New_York');
?>
More info:
http://php.net/manual/en/function.date- ... ne-set.php

dahdah
 
 
Posts: 13
Joined: Wed Oct 18, 2017 7:58 pm

Re: probleme après submit

Post by dahdah » Fri Oct 27, 2017 8:00 pm

merci mon maitre c'est bon merci

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests