Date/Calc.php - getMonthFullname

From: Date: Fri, 08 Feb 2002 13:25:59 +0000
Subject: Date/Calc.php - getMonthFullname
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-796@lists.php.net to get a copy of this message
I was wondering if anyone could explain how I can use the "getMonthFullname" function, and how to use the Date_calc Class in general. Are there any docs or examples? I'm trying to use the above-mentioned function to populate a pulldown like below, but the result I'm getting currently is: <SELECT NAME="TrialStart_month"><option value="1"></option> The code: ----------------- if (isset($select_name_month)) { echo '<SELECT NAME="' .$select_name_month . '">'; for ($i=1; $i<=12; $i++) { echo '<option value="' . $i . '"'; if (isset($month) && $month == $i) { echo ' SELECTED'; } echo '>'; require "Date/Calc.php"; $D_Calc . $i = new Date_Calc; echo $D_Calc . $i->getMonthFullname($i); echo ' </option>'; } echo '</SELECT>&nbsp;'; } ----------------- Any help would much appreciated....I've only just discovered this class, and I can see it will come in useful! Thanks Simon H

« previous php.pear.general (#796) next »