pasan4you Posted April 30, 2015 Share Posted April 30, 2015 i have created a web site.In the User page of . it will welcome the User as Good Morning, Good Afternoon or Good Evening according to the Server Time.can any one tell me how to do it. <h1>"Goodqqq Morning"! <?php echo $_SESSION['username'];?> . Welcome to TTl University College</h1> <h2>Course Registration Requests</h2> i need the coording to change the welcome message based on the server time in PHP. thnks Link to comment Share on other sites More sharing options...
Ingolme Posted April 30, 2015 Share Posted April 30, 2015 You can use the idate() function to find out what hour it is and use if() statements to show different messages. 1 Link to comment Share on other sites More sharing options...
pasan4you Posted April 30, 2015 Author Share Posted April 30, 2015 can u tellme the place where i apply it Link to comment Share on other sites More sharing options...
Ingolme Posted May 1, 2015 Share Posted May 1, 2015 Do you know any PHP? If you don't, I suggest going through W3Schools PHP tutorial first. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now