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

JQuery Autocomplete without using label, value, id -

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

JAVA - what is the difference between void and boolean methods? -