Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/10/2009, 07:47
totolia
 
Fecha de Ingreso: mayo-2008
Mensajes: 315
Antigüedad: 16 años
Puntos: 7
Error PHP Parse error: syntax error, unexpected ';' in bla bla bla

Pues estoy haciendo una especie de mod para mi web y conecta con la mysql, soy bastante novato y voi tirando con ejemplos pero aun soy nuevo me podriais decir que tiene de malo el codigo? es muy possible que bastantes xD. Siempre me saltan errores

Código PHP:
<?php include("conexion.php");
if (
$_REQUEST[tipo] == "Index") {
$consulta mysql_query("SELECT * FROM ccms_video ORDER BY timestamp DESC LIMIT 3");
    
$resultado mysql_query($consulta);
}
if (
$_REQUEST[tipo] == "Multiplataforma") {
$consulta mysql_query("SELECT * FROM ccms_video WHERE platform='Multi' ORDER BY timestamp DESC LIMIT 3");
    
$resultado mysql_query($consulta);
}
?>

<?php

if ($_REQUEST[tipo] == "Index") {

?>

<div><small><small><small><small>&nbsp;</small></small></small></small></div>

<div><small><small><small><small>&nbsp;</small></small></small></small></div>

<div>
<table style="text-align: left; width: 546px; height: 505px;" border="0" cellpadding="2" cellspacing="2">

  <tbody>

    <tr>

      <td><img style="width: 326px; height: 489px;" alt="Portada" src="portada.png"></td>

      <td><br>
      <img style="width: 200px; height: 60px;" alt="Multiplataforma" src="multi.png"><br>
      <img style="width: 200px; height: 60px;" alt="Playsation&reg;3" src="ps3.png"><br>
      <img style="width: 200px; height: 60px;" alt="Playstation&reg;2" src="ps2.png"><br>
      <img style="width: 200px; height: 60px;" alt="Playstation&reg;Portable" src="psp.png"><br>
      <img style="width: 200px; height: 60px;" alt="xbox360" src="xbox360.png"><br>
      <img style="width: 200px; height: 60px;" alt="windows" src="windows.png"><br>
      <img style="width: 200px; height: 60px;" alt="Nintendo DS" src="nintendods.png"><br>
      <img style="width: 200px; height: 60px;" alt="Nintendo Wii" src="nintendowii.png"><br>
      <br>
      <br>
      </td>

    </tr>

  </tbody>
</table>

<span style="font-family: Arial; font-weight: bold; color: rgb(0, 105, 140);"><br>

</span></div>


<?php


}



if (
$_REQUEST[tipo] == "Multiplataforma") {
while(
$fila=mysql_fetch_array($resultado))( 

 
?>
 <p>    <td width="25%" class="contentlight"><div style="margin-bottom: 5px; width: 155px; height: 95px; background: url(thumbnailer.php?type=home_vids&image=<? echo $fila[image]; ?>) center no-repeat; padding: 0;"><a href=\"video3.php?tipo=<? echo $fila[type]; ?>&url=<? echo $fila[url]; ?>&titulo= <? echo $fila[title]; ?>"><img alt="" style="border: 1px solid #787878;" width="154" height="94" src="images/ccmsHD.png" /></a></div>

<strong><a class="content_large" href="video3.php?tipo=<? echo $fila[type]; ?>&url=<? echo $fila[url]; ?>&titulo= <? echo $fila[title]; ?>"><? echo $fila[title]; ?></a></strong><br />
<strong><a>$fila[description]</a></strong><br />
<strong><a>En <? echo $fila[platoform]; ?></a></strong><br />
                    <? echo $fila[views]; ?> Visitas <a>  </a> </p> 
                    <?php
                                        
}
}


?>