I am coding a guestbook (that means I'm quite newbie in PHP world ;-) and my problem is the timestamp.
When user writes an entry and submits a form, a timestamp of that moment (submitting a form) should be "captured" and saved for further use (when showing messages). But how to do that? I know it has something to do with date()-function but I dunno better 🙁...
And another question: (I use files, not having db's in use) - how to separate messages? When the msg is written and form submitted and checked, a saving function is used to write the msg into a file like this:
'...fwrite($fp, "<b>Message:</b><br><p>$msg</p><br>\n");
so when loading a page where all entries are (I call it a msg list) should be also an amount of posted messages. So what I have to do to tell the program to separate msg's 🙂
Greetings,
Mikko Tyni
aukioCommunications | www.sivustot.net