View Single Post
Old 01-16-2008, 07:21 PM   #1 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Box Last 5 lines of PHP code that you wrote

Hey all,

No reason at all for this thread, just pure bordem, but I'd like to know what the last 5 lines of PHP code where that you wrote.

(the 5 lines don't include comments or whitespace, just actual code)

Be honest, don't edit them at all (well, remove sensitive info) then post them here

Here's mine:

PHP Code:
        // Pull the entry for the given date from the database
        
$items = new Item();

        
$where $items->getAdapter()->quoteInto('publish = ?'$date);
        
$item $items->fetchRow($where);

        
// Check we got a result
        
if ($item === NULL)
        { 
Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote