=0; $i--) { if ($rows[$i]["isrespondedto"] === "f" && $rows[$i]["ispublic"] === "t") { $totalUnresponded++; } else if ($rows[$i]["ispublic"] === "f") { $totalPriv++; } else { $totalRespondedPub++; } } echo("

not responded to ({$totalUnresponded})

"); for ($i=count($rows); $i>=0; $i--) { if ($rows[$i]["isrespondedto"] === "f" && $rows[$i]["ispublic"] == "t") { echo("
"); if ($rows[$i]["iscwed"] === "t") { echo("
cw: " . $rows[$i]["cw"] . ""); } echo(htmlspecialchars($rows[$i]["text"])); echo("
" . $rows[$i]["time"] . "
"); echo("edit / respond / delete
"); } } echo("

private ({$totalPriv})

"); for ($i=count($rows); $i>=0; $i--) { if ($rows[$i]["ispublic"] === "f") { echo("
"); if ($rows[$i]["iscwed"] === "t") { echo("
cw: " . $rows[$i]["cw"] . ""); } echo(htmlspecialchars($rows[$i]["text"])); echo("
" . $rows[$i]["time"] . "
"); echo("edit
"); } } echo("

public ({$totalRespondedPub})

"); for ($i=count($rows); $i>=0; $i--) { if ($rows[$i]["ispublic"] === "t" && $rows[$i]["isrespondedto"] === "t") { echo("
"); if ($rows[$i]["iscwed"] === "t") { echo("
cw: " . $rows[$i]["cw"] . ""); } echo(htmlspecialchars($rows[$i]["text"])); echo("
" . $rows[$i]["time"] . "
"); echo("
" . htmlspecialchars($rows[$i]["responsetext"]) . ""); echo("
" . $rows[$i]["responsetime"] . "
"); echo("edit
"); } } ?>