read($sql); while ($row = mysql_fetch_array($rows)) { debug("Missed name for default locale id={$row['id']}", true); } /** * Give this function your output. If the debug flag (in the database) is set or if the error is serious it will get printed * * @param string what to print * @param boolean if the error is fatal or not */ function debug($msg, $serious=false) { if (CRON_DEBUG || $serious) { $_ts = strftime('%H:%M:%S'); echo "{$_ts} {$msg}\n"; } } exit; ?>