$unix_date = strtotime($date_from_db);
$unix_time = strtotime($time_from_db);
$day = date ('d', $unix_date);
$month = date ('n', $unix_date);
$year = date('Y', $unix_date);
$hour = date ('H', $unix_time);
$minute = date ('i', $unix_time);
$second = date ('s', $unix_time);
echo "
<td>
<span id='auct_timer'>
</span>
<script language='javascript'>
countdown(".$year.",".$month.",".$day.",".$hour.",".$minute.",".$second.")
</script>
</td>
";
Код же кривой - кавычки одинакового типа друг в друга вкладываешь.