01-16-2008, 07:21 PM
|
#1 (permalink)
|
|
The Frequenter
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
|
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
|
|
|