Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/08/2010, 21:18
al3j4ndro
 
Fecha de Ingreso: agosto-2010
Mensajes: 24
Antigüedad: 13 años, 9 meses
Puntos: 1
Parse error: syntax error, unexpected $end

Código PHP:
<? include("scripts/conexion.php");

$result mysql_query("SELECT  * FROM lecciones_ "$link);



while(
$line=mysql_fetch_array($result)){ ?>
          <?  $box_artista_id_leccion = ($line['artista_id_leccion']); ?>
          <div style="width:550px; height:auto; float:left ; border: #CCCCCC 1px solid;

                clear:none; margin:10px 0 10px 0;  ">
            <div style="width:550px; height:40px; background:#F3F3F3;">
              <spam style=" font-size:20px">Tipo de leccion: <? echo($line['tipo_leccion'])?></spam>
              <?php if (($line['box_text']) == 'si')

                

                { echo 
'<img src="images/text_lec.jpg">';

                }

                
?>
              <?php if (($line['box_part']) == 'si')

                

                { echo 
'<img src="images/part_lec.jpg">';

                }

                
?>
              <?php if (($line['box_audio']) == 'si')

                

                { echo 
'<img src="images/audio_lec.gif"  width="40px" height="40px">';

                }

                
?>
              <?php if (($line['box_video']) == 'si')

                

                { 
                
                echo 
'<img src="images/video_lec.jpg">';

                }

                
?>
            </div>
            <div style="padding:5px 0 0 5px; font-size:15px;"><a href="leccion.php?id=<? echo($line['id_leccion'])?>&<? echo($line['titulo_leccion'])?>"><? echo($line['titulo_leccion'])?></a> </div>
          </div>
          <?php
if ($box_artista_id_leccion != '0'){ 
    
$datos mysql_query("SELECT  * FROM artistas WHERE id = ('$box_artista_id_leccion') ",$link);
    while(
$line1=mysql_num_rows($datos)){
        print  
'<div>'.$line1[nombre].'</div>';
    }
}
?>