In message <[EMAIL PROTECTED]>, Bob
Sawyer <[EMAIL PROTECTED]> writes
>SO - I'm having a hard time getting the weeks thing worked out. I would
>rather NOT take an existing calendar script and try to tweak it, but if
>anyone has a simple, easy-to-follow example similar to what I'm talking
>about, I'd appreciate being able to look under the hood to see if I can
>figure out what to do (and what NOT to do.)
I am not sure what you are asking, but you seem to be asking about
pulling out records with the date in a certain week.
Do you know about PHPs
echo date("W");
http://es2.php.net/date
or possibly more useful, MySQLs
SELECT DATE_FORMAT(mydatefield,'U') FROM mytable
or
SELECT DATE_FORMAT(mydatefield,'u') FROM mytable
(depending on which day your week starts)
http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html
--
Pete Clark
http://www.hotcosta.com
http://www.spanishholidaybookings.com
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/