VIEWED + 1; UpdateField("content_slider_tbl", "viewed", "$viewed", "id='$id'"); } elseif ($key == "banner") { $bannerObj = GetRecord("banner_tbl", "viewed", "id='$id'"); $viewed = $bannerObj->VIEWED + 1; UpdateField("banner_tbl", "viewed", "$viewed", "id='$id'"); } if ($ado) $ado->Close(); if ($db) $db->Close(); echo ""; #header("Location: $url"); ?>