Copied the code exactly and the 1 doesn't look right

Hi,
Page 49 of Build your Own Database Driven Web Site…
the code is: echo date (‘1,F dS Y.’);

Here is my resultToday’s date

Why the commonsensical 1? Do I take it out?

Please advise. And thank you for your time.

KathPoole:)

I have never seen date used with numeric values before as date expression, i would say just remove it as all it will keep doing is printing a 1 before the date.

are you sure it’s not a lower case L?

I would say thats a fair guess, fooled me the first time i started using date()

Thank you. I’ll try all suggestions and see what happens. :slight_smile:

Thank you! :lol:

the real code is <?php echo date (‘l,F dS Y.’); ?> the one that look like one is lower case of L (l)… that is just the case… you may check the PHP echo date function on the PHP site