Anyone can tell me that code which show how many times file has been downloaded.
File downloading count
Collapse
X
-
PHP Code://UPDATE EACH TIME DOWNLOAD
$wow = mysql_fetch_array(mysql_query("SELECT * FROM download WHERE pro='".$id."'"));
$wow = $wow[downloaded]+1;
$awesome = mysql_query("UPDATE download SET downloaded='".$wow."' WHERE pro='".$id."'");
//COUNT DOWNLOAD IN TIME
$pro = mysql_fetch_array(mysql_query("SELECT * FROM download WHERE pro='".$id."'"));
echo "Downloaded: $pro[downloaded] times";
//LEGEND
download = Table name
pro = Column name
downloaded = Column name
$id = File id
* edited by metulj *
* coded by m4ster_v4 *
dont f**king abuse my nickname ?Last edited by m4ster_v4; 15.02.12, 00:18.sigpic
Visit my WEBSITE Project: http://www.aspirewap.net
-
Seem someone angry. We can't use their name. very weird. Not list on TOS. TERM AND CONDITION
edit my post freely, delete my signature.
Btw. Good Luck For you surya4u. This is my code hope it will help you..sigpic
Visit my WEBSITE Project: http://www.aspirewap.net
Comment
-
no offense mater_v4 you obiously like coming to coding talk as otherwize you wouldnt keep posting.
what ever has been deleted has been done for a reason .... now unless you are willing to take coding talk to courts over there terms and conditions you are digging your own grave.
Also you can reduce your number of sql calls by using:
PHP Code:$awesome = mysql_query("UPDATE download SET downloaded=downloaded+1 WHERE pro='".$id."'");
Comment
-
Originally posted by something else View Postno offense mater_v4 you obiously like coming to coding talk as otherwize you wouldnt keep posting.
what ever has been deleted has been done for a reason .... now unless you are willing to take coding talk to courts over there terms and conditions you are digging your own grave.
Also you can reduce your number of sql calls by using:
PHP Code:$awesome = mysql_query("UPDATE download SET downloaded=downloaded+1 WHERE pro='".$id."'");
Surya4u just use text file. Ask master. i don't know how.sigpic
Visit my WEBSITE Project: http://www.aspirewap.net
Comment
Comment