Solamente con un echo:
Código php:
Ver original<?php
$size = 0;
$out = "";
$size += $row["Data_length"];
$out .= $row["Name"] .": ".
round(($row["Data_length"]/1024), 2) ."<br> \n"; }
$size = round(($size/1024), 1); echo $out ."\n";
echo $out ."<br> \n";
echo "Total MySQL db size: $size";
?>
<style type="text/css">
#progress-bar {
background: url(percentage-bg.png) no-repeat left center;
width: 316px;
height: 39px;
}
#progress-level {
background: url(progress.png) no-repeat left center;
width: <?php echo $size; ?>%;
height: 39px;
}
Saludos.