Ask a Question related to PHP Development, Design and Development.
-
Shaun #1
Problem with adding text to emails using the date function
Hi,
using the folling line fo code i am trying to add some text to an email:
$subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i",
strtotime($booking_start_date));
However the output is:
Booking Commences: 24th September 2003 a 09:00
I think the \t is being interpreted as a 'tab', how can i get around this?
Thanks for your help
Shaun Guest
-
#39245 [NEW]: date function generate wrong date with 1162083600 timestamp
From: lohner at aldea dot hu Operating system: Linux PHP version: 5.1.6 PHP Bug Type: Date/time related Bug description: ... -
Help needed with a date function problem
Hi everyone.. I have a custom tag titled "thisdate" My application calls for the week to end on Friday, so my date display looks like...... -
Problem when sending emails with asp.net
Hello all, I'm actually having some troubles when sending mails with a basic asp.net application, using System.web.mail class. My test machine... -
Newbie asking for help - Reading a text file of qurantined emails and parsing contents.
Greetings. Please excuse this post if it is about something that is very simple or have been discussed before, as I am newbie in PHP, and failed... -
Date and text problem
I have a text file called frontPage that loads text from external file. The external file has monthly variables with different text info for each... -
Marek Kilimajer #2
Re: [PHP] Problem with adding text to emails using the date function
You are right, the same way as \n is interpreted as a newline. Use
single quotes
Shaun wrote:
> Hi,
>
> using the folling line fo code i am trying to add some text to an email:
>
> $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i",
> strtotime($booking_start_date));
>
> However the output is:
>
> Booking Commences: 24th September 2003 a 09:00
>
> I think the \t is being interpreted as a 'tab', how can i get around this?
>
> Thanks for your help
>Marek Kilimajer Guest
-
Pete M #3
Re: Problem with adding text to emails using the date function
$subject .= "\nBooking Commences: ".date("jS F Y")." at ".date("H\:i")
Shaun wrote:
> Hi,
>
> using the folling line fo code i am trying to add some text to an email:
>
> $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i",
> strtotime($booking_start_date));
>
> However the output is:
>
> Booking Commences: 24th September 2003 a 09:00
>
> I think the \t is being interpreted as a 'tab', how can i get around this?
>
> Thanks for your helpPete M Guest



Reply With Quote

