Hi,

  I have this message coming when calling the page main.php

  Fatal error: Cannot redeclare formatdate() in
/home/virtual/site239/fst/var/www/html/home/not_main.php on line 3

  the code related to this message is:

  <?
  // format MySQL DATETIME value into a more readable string
  function formatDate($val)
  {
   $arr = explode("/", $val);
   return date("d/m/y", mktime(0,0,0, $arr[1], $arr[2], $arr[0]));
  }
  ?>

  I use this code is some other pages and it works well, but here the code
is used in page not_main.php whose I included it on main.php using require()
function

  Anyone have a tip for it?


  Thx
  Miguel





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to