Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a date from a String. 1

Status
Not open for further replies.

Plogu101

Programmer
Nov 5, 2004
12
GB
Hi, a little date format problem: $result2 returns a String date from MySQL in the form 2005-03-23, and it is inserted in to a table. I just want to take that String and date format it into a day of the week 'Wed' for example, and insert that instead? Any help would be appreciated, thanks..


Code:
 while ($row = @ mysql_fetch_row($result2))
        {
     		echo "<td bgcolor='red'                  colspan='4'>".$row[0]."</td>";
        }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top