|
// idioma: 2=castellà, 3=anglès, 4=alemany, 5=francès
$idioma=2;
$id=10;
$sql="SELECT * FROM textos WHERE codi=".$id." order by orden";
$res=mysql_query($sql);
$row = mysql_fetch_array($res);
$id2=12;
$sql2="SELECT * FROM textos WHERE codi=".$id2." order by orden";;
$res2=mysql_query($sql2);
$row2 = mysql_fetch_array($res2);
$id3=11;
$sql3="SELECT * FROM textos WHERE codi=".$id3." order by orden";;
$res3=mysql_query($sql3);
$row3 = mysql_fetch_array($res3);
?>
DO
{
?>
echo $row[$idioma];
?>
}
WHILE($row=mysql_fetch_array($res));
?>
|
//DO {
echo $row2[$idioma];
$foto=$row2['foto'];
//}
//WHILE($row2=mysql_fetch_array($res2));
?>
DO {
?>
-
echo $row3[$idioma];
?>
}
WHILE($row3=mysql_fetch_array($res3));
?>
|
echo " ";
?>
|
|
|