How to count Downloads
Started on the old forum in June 2011 · view the original in the archive · old links redirect here
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM iw_comup WHERE fileid='".$fileid."'"));
echo "$noi";
this is a demo which selects this file from a databse table to show how many times it was counted
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/>";
note this is just a demo example $noi[9] is selecting the table name +1 is updating the download count by 1
you cant do it with just html
Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in
well u can using php and html like
<?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>
External image (may be gone) External image (may be gone)
*****
**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 ***