Hi guys,
I'm currently working with a download script and please take a look at this code...
$sql = "SELECT url FROM dl_url";
$result = mysql_query($sql);
$rows = mysql_num_rows($result);
for ($x=0;$x>$rows;$x++) {
$urlx[$x] = mysql_result($result,$x);
}
$request = $urlx[$download_id];
The problem is whenever no of rows on this table is lesser than download_id, the download won't start. For say, there are 2 entries on this table, and if an id is higher than 2, downlaod doesn't start but if it's 2 or 1 it does. So what i want is to use higher values for id and download would work. Like, id is 5026 and yet there are 2 entries on the table, it will still download. Can you guys help me with this, please 🙁 ??