Jump to content

Monthly Top 45 script


koughman

Recommended Posts

You should check the syntax of the STR_TO_DATE() function -- you need to pass in your PHP date string, and then define how it is composed: for example, STR_TO_DATE('04/31/2004', '%m/%d/%Y'). Simply substitute your PHP date for the date string and you're done.
Link to comment
https://forums.phpfreaks.com/topic/3350-monthly-top-45-script/#findComment-11487
Share on other sites

[!--quoteo(post=343993:date=Feb 8 2006, 11:32 PM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ Feb 8 2006, 11:32 PM) [snapback]343993[/snapback][/div][div class=\'quotemain\'][!--quotec--]
You should check the syntax of the STR_TO_DATE() function -- you need to pass in your PHP date string, and then define how it is composed: for example, STR_TO_DATE('04/31/2004', '%m/%d/%Y'). Simply substitute your PHP date for the date string and you're done.
[/quote]
my date is like January 5th 2005 and im a n00b with php/mysql can one of you plz help with the exact script, thanks
Link to comment
https://forums.phpfreaks.com/topic/3350-monthly-top-45-script/#findComment-11523
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.