source: extensions/Full_Background/full_BG.php @ 24636

Last change on this file since 24636 was 19033, checked in by Miklfe, 12 years ago
File size: 385 bytes
Line 
1<?php
2define('PHPWG_ROOT_PATH','../../');
3include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
4
5$id=$_POST['id'];
6
7 $query = '
8        UPDATE '.IMAGES_TABLE.' SET hit = hit+1  WHERE id = '.$id.'
9        ;';
10        pwg_query($query);
11       
12$query ='
13        SELECT hit FROM '.IMAGES_TABLE.' WHERE id = '.$id.'
14        ;';
15  $hitImage = pwg_db_fetch_assoc(pwg_query($query));
16echo $hitImage['hit'];
17 
18?>
Note: See TracBrowser for help on using the repository browser.