phpWebLog - web news management with adolescent sexist humor
find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (909)
  • Announcements (20)
  • Development (518)
  • Mods & Hacks (32)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • smileys (Nekrataal)
  • smileys (reinhard)
  • Where can I modify the style of bottom navigation? (11)
  • Where can I modify the style of bottom navigation? (Ken Farmer)
  • Great News for PHP Programmers.... (Nekrataal)


  • Year Bug Fix in archive.php - General
    Posted by mochaexpress (Friday February 16 2001 @ 03:33AM EST) views: 106
    in ./archive.php:

    change

    $y = strftime("%y",$a["ts"]);

    to

    $y = strftime("%Y",$a["ts"]);

    %y is 2 digit year without the century. this will fail for a query using the SQL function year() which expects a 4 digit year. so basically you'd get nothing displayed. change it to %Y (big Y) and you should see 4 digits displayed when viewing archive.php. and if you click on the link, it'll query the db properly:

    http://www.minnesota.com/~tom/phpweblog/archive.php?month=02&year=2001

    < Lost comments | problem editing links >

    No user comments.

    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:
    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net
  • php|cruise: The World's First Ever PHP-only Cruise
  • PHP Usage Survey Results
  • PHP Manual CHM Edition - 12th build
  • International PHP Conference 2003 program online
  • Server Central Donates Server
  • European Open Source Development Threatened!
  • php{con west is announced
  • PHP 4.3.3 released!
  • Active Awards 2003 Winners
  • PHP.net news history

  • PHPBuilder
  • PHPBuilder.com New Articles


  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications