dagger2002
Programmer
Hi all have a quest, for the holy grail, to fix this script i am working on. All it needs to do is run this function i am calling everytime it runs. right now it os just running it once but reusing the numbers. here is the code
and here is the function
ty in advanced
Code:
while($row = mysql_fetch_array($result)){
echo '<p><a href="' . $row[fil_path] . '">' . $row[fil_title] . '</a>, ' . fileSizer($row[fil_path]) . '</p>' . "\r\n";
}
and here is the function
Code:
function fileSizer($size){
$sizer = round(filesize($row[fil_path])/1024);
if($sizer > 1){
$size = 'Less then 1';
}
else{
$size = $sizer;
}
return $size;
}