Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() [<a href='datetime.--construct'>datetime.--c
<blockquote>
  <p>Fatal error: Uncaught exception 'Exception' with message
  'DateTime::_<em>construct() [datetime.--construct]: Failed to parse
  time string (Resource id #7) at position 0 (R): The timezone could not
  be found in the database' in Z:\home\plati\www\view.php:21 Stack
  trace: #0 Z:\home\plati\www\view.php(21):
  DateTime-></em>_construct('Resource id #7') #1 {main} thrown in
  Z:\home\plati\www\view.php on line 21</p>
</blockquote>

<p>have ithis error what do?
line 20...</p>

<pre><code>$date = mysql_query("SELECT date FROM sondaje WHERE id = '$id'") or die("Error! DataBase Name Incorrect!");
$bdate = new DateTime("$date");
$bdate-&gt;modify('+8 day');
$yearz = $bdate-&gt;format('Y');
$monthz = $bdate-&gt;format('m');
$dayz = $bdate-&gt;format('d');
$hourz = $bdate-&gt;format('H');
$minutz = $bdate-&gt;format('i');
$secndz = $bdate-&gt;format('s');
</code></pre>
