That still didn't seem to work... I put it in this expression:
$query = "UPDATE adscript_ads SET pageviews = pageviews - 1 WHERE rowID = $adnum";
mysql_query($query);
$adnum is the correct id (0) because I have also put it into a link. I've checked my database and the row and the pageview has still stood at 500 for some reason?