Hey guys,
Just ran across this and thought it was worthy enough to start a thread...
PHP Code:
<?php
//...
function title($item)
{
?>
<?=$item["TITLE"];?>
<?
}
//...
?>
It scares me what some people do... Anyone seen worse while working on someone else's code?
Just thought I'd add for any non-programmers reading this... The proper way to do this is simply:
PHP Code:
<?php
// ...
function title($item) {
echo $item['TITLE'];
}
//...
?>
Best Regards,
Patrick