Fehlersuche für Profis....
Tron
- php
Hi,
ich verusche ein umnfragescript zu schreiben:
<?php
include('includes/connect.inc.php');
$get1 = mysql_query("select * from poll order by id limit 1");
$result1 = mysql_fetch_array($get1);
$get2 = mysql_query("select * from ".$result1["table"]);
?>
<table border="1" style="border-collapse:collapse" bordercolor="gray" width="98%" height="98%">
<tr>
<td>
<table border="0" width="100%" height="100%">
<?php
$result2 = mysql_fetch_array($get2);
$widthg = $result2["count(votes)"]
while($result3 = mysql_fetch_array($get2)) {
while($color < 7) {
$color = $color + 1;
$width = ($result3["votes"] / $widthg) * 100
?>
<tr><td align="left" valign="center"><img src="images/umfrage/choice<?php echo $color; ?>.jpg" width="<?php echo $width; ?>"><?php echo $width."%"; ?></td></tr>
<?php
}
}
?>
</td>
</tr>
</table>
Nun bekomme ich immer den Fehler:
Parse error: parse error, unexpected T_WHILE in /home/www/htdocs/ich-lerne-noch.de/includes/umfrage.php on line 14
Ich hab schon alles u tersucht... es funktioniert trotzdem nicht... kann mir wer helfen?
danke
Tron
Nach der Zuweisung über der Schleife ('$widthg = $result2["count(votes)"]') fehlt das Semikolon ;-)
Hi!
$widthg = $result2["count(votes)"]
ist diese Zeile richtig?
Ich hab schon alles u tersucht...
anscheinend nicht ;-)
Grüße
Andreas