Parse error: syntax error, unexpected end of file in /web/htdocs/www.exlot.it/home/0.2/regole.php on line 104
ragazzi aiuto, non riesco a capire da dove cavolo vien fuori questo errore...
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../style/interno.css" />
<?php
@require('../include/connection.php');
?>
</head>
<body>
<div style=" width: 500px; height: auto; margin: 0 auto; padding: 20px; ">
<div class="riga" style="font-weight: bold; color: #600; height: 50px;">
<div style="font-size: 14px; padding: 3px;">GUIDA DEL GIOCATORE</div>
<div class="simbolo" style="background-color: #600; color: #FFF; height: 15px; font-size: 9px; ">
</div>
<div class="descrizione" style="background-color: #600; color: #FFF; height: 15px; font-size: 9px; ">
REGOLA</div>
<div class="statuto" style="background-color: #600; color: #FFF; height: 15px; font-size: 9px; ">
TESTO</div>
</div>
<?php
$x=0;
$query=mysql_query("SELECT * FROM t_regolamenti WHERE tipoRegola='regoleOff' && testo!='testo qui' ORDER BY organizza ASC");
while($row=mysql_fetch_array($query)) {
if("$x" % 2) { $bgcolor= "#D1CA72"; } else { $bgcolor= "#F4E7B9"; }
$x++;
?>
<div class="riga" style="height: auto;">
<div class="simbolo" style=" background-color: <?php echo $bgcolor; ?>;">
<img src="../imgCorporazioni/<?php echo $row['icoMestiere']; ?>.gif" width="20" height="20" />
</div>
<div class="descrizione" style="background-color: <?php echo $bgcolor; ?>;">
<?php echo $row['titolo']; ?>
<br/>
<i style="color: #666;">autore : <?php echo $row['autore']; ?></i>
</div>
<div class="statuto" style="background-color: <?php echo $bgcolor; ?>; ">
<a href="editto.php?id=<?php echo $row['idRegola']; ?>">Leggi</a>
</div>
</div>
<? } ?>
</div>
<div style=" width: 500px; height: auto; margin: 0 auto; padding: 20px;">
<div class="riga" style="font-weight: bold; color: #600; height: 50px;">
<div style="font-size: 14px; padding: 3px;">LE RAZZE DI EXLOT</div>
<div class="simbolo" style="background-color: #600; color: #FFF; height: 15px; font-size: 9px; ">
%</div>
<div class="descrizione" style="background-color: #600; color: #FFF; height: 15px; font-size: 9px; ">
RAZZA</div>
<div class="statuto" style="background-color: #600; color: #FFF; height: 15px; font-size: 9px; ">
CENSIM.</div>
</div>
<?php
$x=0;
$query=mysql_query("SELECT * FROM t_razze ORDER BY idRazza ASC");
while($row=mysql_fetch_array($query)) {
if("$x" % 2) { $bgcolor= "#D1CA72"; } else { $bgcolor= "#F4E7B9"; }
$x++;
?>
<div class="riga" style="height: auto;">
<div class="simbolo" style=" background-color: <?php echo $bgcolor; ?>;">
<?php
$y=0;
$totUtenti=mysql_query("SELECT * FROM t_utenti WHERE png = '0' OR png = '1'");
while($printUtenti=mysql_fetch_array($totUtenti)) { $y++; }
$z=0;
$totRazza=mysql_query("SELECT * FROM t_utenti WHERE razza='".$row['razza']."' AND ( png = '0' OR png = '1' ) ");
while($printRazza=mysql_fetch_array($totRazza)) { $z++; }
$w=$z*100/$y;
//$w=explode(".",$w);
echo round($w); ?> %<br/>
</div>
<div class="descrizione" style="background-color: <?php echo $bgcolor; ?>;">
<a href="razze.php?id=<?php echo $row['idRazza']; ?>">
<img src="../imgRazze/<?php echo $row['razza']; ?>x.gif" /> <?php echo strtoupper($row['razza']).' <br/>'; echo 'Mente '.$row['mente'].' '; echo 'Forza '.$row['forza'].' '; ?>
</a>
<br/>
<!-- <i style="color: #666;">autore : <?php echo $row['autore']; ?></i> -->
</div>
<div class="statuto" style="background-color: <?php echo $bgcolor; ?>; ">
<a href="censimento.php?id=<?php echo strtoupper($row[razza]); ?>">CENSO</a>
</div>
</div>
<? } ?>
</div>
</body>
</html>