<td width="100px" id="total_count" > <?php if (!isset($total_count_value)) {echo '0';} else {echo $total_count_value;} ?> </td>
<td width="100px" id="total_count" > поменял содержимое ячейки </td>
document.getElementById('total_count').innerHTML = 'blahblah';