Re: [PHP] Re: $mydata-StampDate

2005-06-27 Thread Kevin L'Huillier
On 27/06/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: John Taylor-Johnston wrote: I could just change the field type. But how do you calculate it? I don't see much to inspire a start. I'm not a full-time coder either. More of a tinkerer. I don't want someone to do it for me, but need

[PHP] Re: $mydata-StampDate

2005-06-26 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: I created my own counter. I have a varchar (10) field that resembles a date: 2005-06-26. Now I would like to parse out $mydata-StampDate to find how many hits per day I have had since 2003-08-23. Where do I start? while ($mydata = mysql_fetch_object($news))

[PHP] Re: $mydata-StampDate

2005-06-26 Thread John Taylor-Johnston
I could just change the field type. But how do you calculate it? I don't see much to inspire a start. I'm not a full-time coder either. More of a tinkerer. I don't want someone to do it for me, but need to get my head around how to do it. http://ca3.php.net/manual/en/function.strtotime.php

[PHP] Re: $mydata-StampDate

2005-06-26 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: I could just change the field type. But how do you calculate it? I don't see much to inspire a start. I'm not a full-time coder either. More of a tinkerer. I don't want someone to do it for me, but need to get my head around how to do it.