Advertisement

05.29.2008 at 05:56PM PDT, ID: 23443395
[x]
Attachment Details

PHP small date error

Asked by mohammedf in PHP Scripting Language, PHP Installation, PHP and Databases

Hi
im using the following code:
-------------------------------
when i run it i got the following error

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'Europe/Helsinki' for '2.0/no DST' instead in C:\AppServ\www\bs\doAdd.php on line 7

any ideas ?
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
<? include("comm/connection.php");?>
<?
$from=$_REQUEST[from];
$email=$_REQUEST[email];
$msg_title=$_REQUEST[msg_title];
$body=$_REQUEST[body];
$date_=date(ymdh);
mysql_query("insert into income_messages_tb(from,email,msg_title,msg_body,date) values ('$from','$email','$msg_title','$body','$date_');");
 
//echo "<meta http-equiv='refresh' content='0;URL=contact.php?msg=Thanks for yout message' />";
 
?>
 
 
[+][-]05.29.2008 at 06:06PM PDT, ID: 21674561

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, PHP Installation, PHP and Databases
Sign Up Now!
Solution Provided By: NesFuratu
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.29.2008 at 06:08PM PDT, ID: 21674570

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 06:18PM PDT, ID: 21674601

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628