Box Office

Loc Titlu Daily Locations Location Avg. Total Gross Weeks

‘;
$n = 1;
$c = 0;
while ($row = mysql_fetch_array($result))
{
$averagechange = $row[„averagechange”];
$averagechange2 = $row[„averagechange”];
$locationschange = $row[„locationschange”];
$title = $row[„title”];

if (0 <= $averagechange2) {$averagechange = "„.$averagechange.”„;} else {$averagechange = „„.$averagechange.”„;}
if (0 <= $averagechange2) {$averagechange1 = "„;} else {$averagechange1 = „„;}
if (0 <= $locationschange) {$locationschange = "„.$locationschange.”„;} else {$locationschange = „„.$locationschange.”„;}

$string = strip_tags($title);
$old_pattern = array(„/[^a-zA-Z0-9]/”, „/-+/”, „/-$/”);
$new_pattern = array(„-„, „-„, „”);
$link = „http://www.moviesbox.ro/”.strtolower(preg_replace($old_pattern, $new_pattern , $string));

$class = (($c++%2)!=0) ? „bo-b” : „” ;

echo „

„.$n++.”. „.$averagechange1.” „.$title.”
„.$row[‘distributor’].” „.$row[‘gross’].” „.$averagechange.” „.$row[‘locations’].” „.$locationschange.” „.$row[‘locationaverage’].” „.$row[‘average’].” „.$row[‘weeks’].”

„;
}

echo ‘

‘;

?>

Lasă un răspuns

Adresa ta de email nu va fi publicată. Câmpurile obligatorii sunt marcate cu *

Back to top button
Close