webdevdea1 Posted December 10, 2013 Share Posted December 10, 2013 (edited) <?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 Edited December 10, 2013 by webdevdea1 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Solution jazzman1 Posted December 10, 2013 Solution 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 Quote Link to comment 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!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.