sql - PHP - Execute PHP Script On Page Load? -


i want php script counts how many times item has been bought, increasing counter 1 every time php script (of purchase) has been executed, , showing in page database.

let's say, when user redirected site via paypal load page thankyou.php on load, increases database value (of counter) in table one.

i couldn't find examples i'm hoping kind guys here me out.

php server side language executed on sever side before page loads. in case have make ajax call trigger php code.

update: mysql_query("update table_name set id = id + 1 id = '$id'"); 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -