Salve vorrei scrivere su ogni rigo 3 articoli ma non riesco a cambiare articolo qui di sequito c'è il codice mi potete aiutare grazie.
codice:
$sezid = $_GET['sezid'];
$result1 = mysql_query("select artid, sezid, titolo, contenuto, image, image1 from articoli where sezid='$sezid'");
if (mysql_num_rows($result1) > 0) {
if ($sezid <> 1) {
echo "<table border=0 width=100% cellpadding=3 cellspacing=0>";
while(list($artid, $sezid, $titolo, $contenuto, $image, $image1, $oggi) = mysql_fetch_array($result1)) {
$result2 = mysql_query("select sezname from sezioni where sezid=$sezid ");
list($sezname) = mysql_fetch_row($result2);
echo "<tr><td valign=top width=15%>";
if ($image != ($path."vuoto.gif")){
if ($image1 != ($path."vuoto.gif")){
echo "<a href=\"$image1\"><img src=\"$image\" width=142 border=0></a></td></tr>";
}
else{
echo"<img src=\"$image\" border=0><td></tr>";
}
}
echo "<tr><td class=tit width=85% valign=top>$titolo</td></tr>";
echo "<tr><td class=tit width=85% valign=top>$contenuto</td></tr>";
}
echo "</table>";
}
echo "<table border=0 width=100% cellpadding=3 cellspacing=0>";
while(list($artid, $sezid, $titolo, $contenuto, $image, $image1, $oggi) = mysql_fetch_array($result1)) {
$result2 = mysql_query("select sezname from sezioni where sezid=$sezid ");
list($sezname) = mysql_fetch_row($result2);
echo "<tr><td valign=top width=15%>";
if ($image != ($path."vuoto.gif")){
if ($image1 != ($path."vuoto.gif")){
echo "<a href=\"$image1\"><img src=\"$image\" width=142 border=0></a></td></tr>";
}
else{
echo"<img src=\"$image\" border=0><td></tr>";
}
}
echo "<tr><td class=tit width=85% valign=top>$titolo</td>";
$artid + 1;
echo "<td class=tit width=85% valign=top>$titolo</td>";
$artid + 1;
echo "<td class=tit width=85% valign=top>$titolo</td></tr>";
echo "<tr><td class=tit width=85% valign=top>$contenuto</td><td class=tit width=85% valign=top>$contenuto</td><td class=tit width=85% valign=top>$contenuto</td></tr>";
}
echo "</table>";
}
else{
}
echo "
<b class=px14>[/b]";