webdevdea1 Posted December 10, 2013 Share Posted December 10, 2013 <?php echo "Hello World. Today is ".date("1")."."; ?> How are you ? Hello World. Today is <?php echo date("1"); ?>. How are you ? I cant understand my code is like the example.. help please.. Here is the link to what it produces http://dandewebwonders.com/WebDev2/one.php Its supposed to say hello world today is wednesday . How are you ? ( that is what the book says)->build in date function displays the current day of the week according to the servers system time Link to comment https://forums.phpfreaks.com/topic/284671-supposed-to-be-showing-the-date/ Share on other sites More sharing options...
webdevdea1 Posted December 10, 2013 Author Share Posted December 10, 2013 http://dandewebwonders.com/WebDev2/one.php here is what the code produces Link to comment https://forums.phpfreaks.com/topic/284671-supposed-to-be-showing-the-date/#findComment-1461902 Share on other sites More sharing options...
jazzman1 Posted December 10, 2013 Share Posted December 10, 2013 ( that is what the book says)->build in date function displays the current day of the week according to the servers system time http://php.net/manual/en/function.date.php. Try with "l" (L) lower-case Link to comment https://forums.phpfreaks.com/topic/284671-supposed-to-be-showing-the-date/#findComment-1461903 Share on other sites More sharing options...
webdevdea1 Posted December 10, 2013 Author Share Posted December 10, 2013 Thanks, I tried that earlier but must have not saved my work :-( thanks so much I refer all my friends to this site you guys and gals are the best!!!! Link to comment https://forums.phpfreaks.com/topic/284671-supposed-to-be-showing-the-date/#findComment-1461906 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.