PHP Classes

Sintax problem in PHP - strtotime function.

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Sintax problem in PHP - strtotime...  
Subject:Sintax problem in PHP - strtotime...
Summary:Sintax problem in PHP - strtotime function.
Messages:2
Author:sebastian
Date:2010-02-12 05:26:20
Update:2010-02-12 08:33:38
 

  1. Sintax problem in PHP - strtotime...   Reply   Report abuse  
Picture of sebastian sebastian - 2010-02-12 05:34:31
Dear All,

I´m having problems with a php code. I´m constantly receiving the following error:

Call to a member function getMinDias() on a non-object in /var/www/xxxxxxxx/file.php on line 282

Line 282 refers to the following code:

$ffaux = strtotime($fecha_inicio_format.' + '.$temp->getMinDias().'days ');

For reference:
where $temp = $a->temporada($postFechaInicio);
where $postFechaInicio = $_POST['anoLlegada'].'-'.$_POST['mesLlegada'].'-'.$_POST['diaLlegada'];

To be honest I dont know if I have a sintax error on line 282 or something different applies.

hope you can help. Best regards... sebastian.

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.