On the bindings panel, click the plus button, an select URL variable. Set the name to id.
Then add the Data Assist Update record server behavior.
Set the trigger to "Before Page Load"
For the Key column select the id column. next to Key Column value, click the lightning bolt and select the id URL variable from the bindings list.
On the second page, select the viewCount column, then click the lightning bolt next to value. From the detail page recordset, select the viewCount column. This will add code similar to:
<?php echo $row_RecordsetName['viewCount']; ?>
change that to:
<?php echo $row_RecordsetName['viewCount']++; ?>
finally, make sure that the forms action will pass the id querystring when it posts, change the forms action to:
<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>