Jump to content

tucker

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tucker's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I researched a little and found a way to do it. You'll use two functions: date and mktime. Date returns the date based on given variables. Your given variables will be the date you want converted. Look at this code: echo date("M-d-Y", mktime(0, 0, 0, 1, 6, 2005)); The first part of the date function, "M-d-Y" displays your date in a specific format ([a href=\"http://www.php.net/manual/en/function.date.php\" target=\"_blank\"]see this page for different formats[/a]). The mktime converts 06 (the sixth) of 01 (january) of 2005 (year). Simply have your date put in those spaces to be formatted, like so: echo date("M-d-Y", mktime(0, 0, 0, $yourmonth, $yourday, $youryear)); Hope this helps. -Seth
  2. I have 40 items listed in a database table...and I need to have items regularly change positions. Is there a way to shift the order of items in a database? Thank you. -Seth
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.