ciao a tutti. premetto che in php sono una capra.
ho questo script che mi estrae i record di una tabella e me li fa scorrere in un box per le news uno alla volta ordinati per data di inserimento.
naturalmente ne fa vedere uno alla volta. io avrei bisogno che ne facesse vedere due alla volta.
qualcuno mi può aiutare?
function scriviarticolo_lista_news_scorr($cat){
global $mysql_question_table,$mysql_langquestion_table, $db, $l;
$lin = getLinguaName($l);
$i=0;
if ($cat<>'') {
$sql = "select t1.*, t2.* from $mysql_question_table as t1, $mysql_langquestion_table as t2 where t2.lang_fldAuto=$lin and t1.fldAuto=t2.question_fldAuto and t1.chapter_fldAuto=$cat order by data_ins desc limit 0,5";
$result = $db->query($sql);
while($row = $db->fetch_array($result)){
$sMenu = '<table width="140" align="center" border=0>';
$sMenu .='<tr><td class="menuf" align="left">'.$row['nome'].'</td></tr>';
$sMenu .='<tr><td class="article_news">'.addslashes($row['descbreve']).'</td></tr><tr height="5"><td></td></tr>';
$sMenu .="</table>";
echo "myScrollerThing.msgArray[".$i."] = '".$sMenu."';";
$i++;
}
}
}
ciao e grazie![]()