Ignore:
Timestamp:
10/24/07 23:38:09 (5 years ago)
Author:
hverton
Message:

change of table name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/advertising/php-files/modules/advertising/click.php

    r1014 r1019  
    1616 
    1717// get the requested ad from the database 
    18 $result = dbquery("SELECT * FROM ".$db_prefix."adverts where adverts_id = '".$id."'"); 
     18$result = dbquery("SELECT * FROM ".$db_prefix."advertising where adverts_id = '".$id."'"); 
    1919if(dbrows($result)) { 
    2020    $row = dbarray($result); 
    2121    // update the hit (don't count the clients own hits!) 
    2222    if (!isset($userdata['user_id']) || $userdata['user_id'] != $row['adverts_userid']) { 
    23         dbquery("UPDATE ".$db_prefix."adverts SET 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."'"); 
    2424    } 
    2525} 
Note: See TracChangeset for help on using the changeset viewer.