|
Posted by Krustov on 01/18/08 14:14
<comp.lang.php>
<>
<Thu, 17 Jan 2008 19:49:50 -0800 (PST)>
<65ae9a75-c836-4118-9a85-922d664e64be@e10g2000prf.googlegroups.com>
> I'm currently building a purchase order system using php and mysql.
> Each order created needs to have an associated date. I'm looking for
> a small calendar application, to be incorporated within a html form.
> It should display the current date, when the page loads and should
> allow the form user to select a date, which will be submitted with the
> form and stored in the database. I've been using drop down boxes, but
> my client seems to think a calendar display would be more user
> friendly.
>
$demo=date("D dS M h:i A",time()+$tip);
$tip can be anything i suppose - but most of the time the value of $tip
is usually something like 86400 as is (one day) in php .
$tip=0;
$demo=date("D dS M h:i A",time()+$tip);
print "the time is $demo <br>";
$tip=86400;
$demo=date("D dS M h:i A",time()+$tip);
print "the time is $demo <br>";
$tip=172800;
$demo=date("D dS M h:i A",time()+$tip);
print "the time is $demo <br>";
And so on and so on .
While the above probably wont be suitable for the actual calendar
display - you can use it to create the date(s) that will be stored in
your database .
Navigation:
[Reply to this message]
|