0): /* if the URL is in the database, increase count and redirect */ $clicks = mysql_result($result,0,"Clicks"); $URL = mysql_result($result,0,"URL"); $clicks++; mysql("eduke_dwsite","UPDATE DW_SiteNews SET clicks=$clicks WHERE RowID ='$RowID'"); mysql_close(); Header("Location: $URL\n\n"); else: /* if URL is NOT in the database, just redirect anyway with no error messages */ Header("Location: $URL\n\n"); endif; endif; ?>