Changeset 1019 in ExiteCMS for modules/common/advertising/php-files/modules/advertising/click.php
- Timestamp:
- 10/24/07 23:38:09 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/advertising/php-files/modules/advertising/click.php
r1014 r1019 16 16 17 17 // get the requested ad from the database 18 $result = dbquery("SELECT * FROM ".$db_prefix."advert swhere adverts_id = '".$id."'");18 $result = dbquery("SELECT * FROM ".$db_prefix."advertising where adverts_id = '".$id."'"); 19 19 if(dbrows($result)) { 20 20 $row = dbarray($result); 21 21 // update the hit (don't count the clients own hits!) 22 22 if (!isset($userdata['user_id']) || $userdata['user_id'] != $row['adverts_userid']) { 23 dbquery("UPDATE ".$db_prefix."advert sSET adverts_clicks=adverts_clicks+1 where adverts_id='".$id."'");23 dbquery("UPDATE ".$db_prefix."advertising SET adverts_clicks=adverts_clicks+1 where adverts_id='".$id."'"); 24 24 } 25 25 }
Note: See TracChangeset
for help on using the changeset viewer.
