Cosa c'è di errato?
Dice:codice:<? if ($ID1=="") { $ID1="2"; } if ($ID=="") { $ID="1"; } $query = "SELECT ID_areesx,Titolo_areesx FROM areesx WHERE ID_areesx = $ID1"; $result = mysql_query($query, $db); while ($rows = mysql_fetch_array($result)) { echo "[img]images/indice3.gif[/img] ".$rows["Titolo_areesx"].""; $query2 = "SELECT ID,Titolo,Area,Link,Sottoarea FROM sottoaree WHERE ID = $ID AND Area = $ID1"; $result2 = mysql_query($query2, $db); while ($rows2 = mysql_fetch_array($result2)) { echo " [img]images/indice3.gif[/img] ".$rows2["Titolo"].""; } } ?> </td> </tr> </table> <? $query = "SELECT ID,Titolo,Descrizione,Testo,Data,Ora,Scadenza,Area,Link,Sottoarea,Sottoarea2 FROM notizie WHERE Area = $ID1 AND Sottoarea = $ID ORDER BY ID DESC"; $result = mysql_query($query, $db); while ($rows = mysql_fetch_array($result)) { $link = $rows["Link"]; $area = $rows["Area"]; $sottoarea = $rows["Sottoarea"]; $sottoarea2 = $rows["Sottoarea2"]; if ($link=="" AND $sottoarea2=="") { echo "[img]images/indice2.gif[/img] <font size=2><a href=articolo.php?ID2=".$rows["ID"]."&ID1=".$ID1.">".$rows["Titolo"]."</a></font> "; } if ($link!="" AND $sottoarea2=="") { echo "[img]images/indice2.gif[/img] <font size=2>".$rows["Titolo"]."</font> "; } if ($sottoarea2!="") { $query3 = "SELECT ID,Titolo,Area,Link FROM sottoaree WHERE ID = $ID"; $result3 = mysql_query($query3, $db); while ($rows3 = mysql_fetch_array($result3)) { if ($rows3["Link"]="") { echo "[img]images/indice2.gif[/img] <font size=2><a href=sottoarea2.php?ID2=".$rows3["ID"]."&ID=".$ID."&ID1="$ID1.">".$rows3["Titolo"]."</a></font> "; } else { echo "[img]images/indice2.gif[/img] <font size=2>".$rows3["Titolo"]."</font> "; } } } } ?>
Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in c:\programmi\easyphp1-7\www\database\sottoarea.php on line 70
La linea 70 sarebbe:
echo "[img]images/indice2.gif[/img] <font size=2><a href=sottoarea2.php?ID2=".$rows3["ID"]."&ID=".$ID."&ID1="$ID1.">".$rows3["Titolo"]."</a></font>
";

Rispondi quotando