Guys, im a newbie on php.. i want to know how to ad hours into servers date and spit it out on a users browser...
$today = date("Y-m-d"
echo "$today";
This code will print the date. ryt? The question is how to add or subtract hours to $today and spit out in a Y-m-d format so i could use it to query a mysql database..
Tnx and more power..
$today = date("Y-m-d"
echo "$today";
This code will print the date. ryt? The question is how to add or subtract hours to $today and spit out in a Y-m-d format so i could use it to query a mysql database..
Tnx and more power..