...

View Full Version : add code for today date in my php class/function



newphpcoder
05-17-2011, 08:52 AM
Good day!

I want to know what is the syntax for date(dd-mm-yyyy) and how can I insert it to my code:


$Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'];


Sorry, because I'm not familiar with class and function.

i want toe result is Preview/Filename/Date/

Thank you so much

newphpcoder
05-17-2011, 09:08 AM
How can I add this code:



$this->csvUploadPaymentDetails[0]['week_num']


with this code:



$Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'] .'/'.date('d-m-Y');


to make the subject become:

Preview/Filename/Date/Week No

Thank you

tomharto
05-18-2011, 01:16 PM
Does this not work?


$Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'] .'/'.date('d-m-Y').'/'.$this->csvUploadPaymentDetails[0]['week_num'] ;

newphpcoder
05-19-2011, 05:05 AM
Does this not work?


$Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'] .'/'.date('d-m-Y').'/'.$this->csvUploadPaymentDetails[0]['week_num'] ;

It work's..

Thank you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum