<?php include 'connection.php'; $inquire = "SELECT COUNT(*) FROM heartbeat WHERE user_name = 'Dan'"; $count = ifx_query ($inquire, $connect_id); $rowcount = ifx_fetch_row($count); $pulse = $rowcount['total']; if ($heartbeat > 0) { echo "_/\^___/\^____/\^___"; } else { echo "________________"; } ?>