Theres is a file on an HTML page I want to show users that how much time that file was downloaded? any one know this code,script or any type of method please post here..
How to count Downloads
Collapse
X
-
Code:$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM iw_comup WHERE fileid='".$fileid."'")); echo "$noi";
Code:echo "<b>Viewed/Downloaded:</b> $noi[9] times <br/>"; mysql_query("UPDATE iw_comup SET dcount=$noi[9]+1 WHERE filename='".$file."'"); echo "<a href=\"$ucdir/$file\">Download this file</a><br/><br/><br/>";
Comment
-
well u can using php and html
like
Code:<?php /////////////////script load time $time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $start = $time; //////////////////Includes include("config.php"); include("core.php"); /////////////////Page headers echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>yourdomain.com</title> <meta name="description" content="yourdomain.com" /> <meta name="keywords" content="free, ringtones, download, mp3, tones, nokia, wap portal, chat, themes, games,wap hosting, mp3 tones, midi ringtones, themes, wallpapers, opperator logos, full 3gp videos, 3gp, chopper, prodigits, free scripts" /> <link rel="shortcut icon" href="images/favicon.ico" /> <link rel="icon" href="images/favicon.gif" type="image/gif" /> <?php $bcon = connectdb(); $sid = $_GET['sid']; echo gettheme($sid); getbrip($sid); ?> </head> <body> <?php ///enter php functions here ?> </body> </html>
Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free
Comment
Comment