plusDate function
Posted: Thu Nov 03, 2005 3:56 pm
i'm a complete beginner with PHP, and worse all of the reference material i have (2 big books + this internet thingy) are for PHP4. where i work we run PHP3 on our server, supposedly there are some incompatabilities with some of our code to update, too many bugs.
but my real naive question is, in some of our code, there are lines like this:
$plusdate=mysql_result($result,$a,plusDates);
now, the first part says 'plusdate', the second part says 'plustDates' - note the 's' to pluralize the second call. is there such a THING as 'plusDates' in any version of php3? we're having some bugs with this plusDate function and i'm trying to figure out if it's merely a spelling error! or if the problem goes deeper.
i've tried changing the pluralized 's' on one page, and it generates mySQL errors; however if the call is made across several pages, and spelled wrong on several pages, could this also be part of the problem? any insight?
thanks
nick
but my real naive question is, in some of our code, there are lines like this:
$plusdate=mysql_result($result,$a,plusDates);
now, the first part says 'plusdate', the second part says 'plustDates' - note the 's' to pluralize the second call. is there such a THING as 'plusDates' in any version of php3? we're having some bugs with this plusDate function and i'm trying to figure out if it's merely a spelling error! or if the problem goes deeper.
i've tried changing the pluralized 's' on one page, and it generates mySQL errors; however if the call is made across several pages, and spelled wrong on several pages, could this also be part of the problem? any insight?
thanks
nick