source:
extensions/Full_Background/full_BG.php
@
26923
Last change on this file since 26923 was 19033, checked in by , 12 years ago | |
---|---|
File size: 385 bytes |
Line | |
---|---|
1 | <?php |
2 | define('PHPWG_ROOT_PATH','../../'); |
3 | include_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)); |
16 | echo $hitImage['hit']; |
17 | |
18 | ?> |
Note: See TracBrowser
for help on using the repository browser.