![]() |
|
#1
|
|||
|
|||
Need help to display time & datePlease tell me what I am missing from my code. It works but it does not display the time and date.
Thanks PHP Code:
|
|||
|
#2
|
|||
|
|||
Re: Need help to display time & dateWell that looked like an interesting excercise. I got no output at all.
So I took some time and went over things like date() and cookies in the http://www.tizag.com/phpT/ tutorial and found that there were several problems with what was posted. I put together the following which attempts to demonstrate some concepts and more proper (I hope) methods. But there is one thing I do not understand and that is the concept of the php 'header area'. Where is it? What types of statements MUST be placed there? Maybe someone can enlighten me. PHP Code:
I tried pasting from vi mouse select and gedit both mouse and ctrl-a ctrl-c gui style... what am I doing wrong? Last edited by admin : 27-Mar-2009 at 03:51.
Reason: fixed bbcodes
|
|
#3
|
||||
|
||||
Re: Need help to display time & dateQuote:
Here are some improvements to the script. Read the code comments for details. PHP Code:
|
|
#4
|
||||
|
||||
Re: Need help to display time & dateQuote:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
|
#5
|
||||
|
||||
Re: Need help to display time & dateQuote:
|
|
#6
|
||||
|
||||
Re: Need help to display time & dateYes, this is true. When replies (with example PHP script) are posted via Quick Reply, all newlines/carriage returns seem to disappear. I never figured it out, or I just didn't try hard enough.
Even so, I am preparing to update the site any day now, and all these bugs should be gone, or replaced by completely new ones! |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Write the declaration for a Date object | Sosy | C++ Forum | 6 | 26-Oct-2007 10:21 |
| constructors/classes | mapes479 | C++ Forum | 3 | 19-Nov-2006 18:34 |
| Limit combo box and date time picker choice according to database created in folder | shinyhui | C++ Forum | 0 | 22-Feb-2005 21:16 |
| Limit combo box and date time picker choice according to database created in folder | shinyhui | MS Visual C++ / MFC Forum | 0 | 22-Feb-2005 03:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The