This update behavior is setting the visit count right?
the recordset does not have any visibility to what the updated value will be, the recordset is created before the visit count is updated.
i see in the update code, you are setting the visit count using the visit count form element:
$_POST["visitcount"]
are you doing the increment in the visit count form elements value?
if so, this form element is what should be used in your if statement, not the recordset value.