$idrut= intval($_GET["Idruta"]);
$sentencia="select * from Rutas where Idruta= ".$idrut;
$resultado=mysql_query($sentencia);
$row = mysql_fetch_array($resultado);
?>
if ($row[Ruta]==1){
?>
}else{
?>
}
?>
echo stripslashes($row[Etapa])?>
echo stripslashes($row[Titulo])?>
$sentenciae1 = "SELECT * FROM Enlaces where idRuta='".$idrut."' order by Idenlace ASC";
$resulte1 = mysql_query($sentenciae1);
$rowe1 = mysql_fetch_array($resulte1);
?>
if($rowe1[Idenlace]){
?>
$sentenciae = "SELECT * FROM Enlaces where idRuta='".$idrut."' order by Idenlace ASC";
$resulte = mysql_query($sentenciae);
while ($rowe = mysql_fetch_array($resulte)){
?>
if($rowe[Fotop]){
?>
}
?>
echo stripslashes($rowe[Nombre])?>
}
?>
}
?>
$sentenciai1 = "SELECT * FROM Imagenes where idRuta='".$idrut."' order by Idimagen ASC";
$resulti1 = mysql_query($sentenciai1);
$rowi1 = mysql_fetch_array($resulti1);
?>
if($rowi1[Idimagen]){
?>
$sentenciai = "SELECT * FROM Imagenes where idRuta='".$idrut."' order by Idimagen ASC";
$resulti = mysql_query($sentenciai);
while ($rowi = mysql_fetch_array($resulti)){
?>
}?>
$sentenciav = "SELECT * FROM Video where idRuta='".$idrut."' order by Idvideo ASC";
$resultv = mysql_query($sentenciav);
while ($rowv = mysql_fetch_array($resultv)){
?>
}?>
}?>
if(($row[Idruta]==1) || ($row[Idruta]==15)){
?>
}
else
{
$anterior = $row[Idruta]-1;
?>
}
?> |
|
if(($row[Idruta]==14) || ($row[Idruta]==28)){
?>
}
else
{
$siguiente = $row[Idruta]+1;
?>
}
?> |