sorry, skipped a line in the dbg function:
and my debug function:
<?php
function dbg($mVar, $sTitle = '') {
$sReturn = '';
if (strlen($sTitle)) {
$sReturn .= $sTitle .= ': ';
}
$sReturn .= '<pre>' . print_r($mVar, 1) . '</pre>';
echo $sReturn; // <--------- This line
}
?>
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php