Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/03/2012, 15:31
Avatar de informacionsys
informacionsys
 
Fecha de Ingreso: mayo-2011
Ubicación: Bogota D.C
Mensajes: 793
Antigüedad: 13 años
Puntos: 76
Respuesta: Monstrar enlaces a partir de texto

hola

listo mira:

Código PHP:
Ver original
  1. include "library/includes/connect.php";
  2. echo "<table cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\">\n";
  3. mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'latin1', character_set_server = 'latin1'", $con);
  4. $Result=mysql_query("SELECT * FROM MOVIES ORDER BY TITLE_ES ASC",$con);
  5.     while($row=mysql_fetch_array($Result)){
  6.  
  7.      $starring= $row['STARRING'];
  8.      $starring_format = explode(",",$starring);
  9.      $count_result = count($starring_format);
  10.  
  11.     echo "    <tr>\n";
  12.     echo "        <td style=\"width: 218px; height: 314px\">\n";
  13.     echo "        <img alt=\"\" height=\"314\" src=\"".$row['POSTER']."\" width=\"203\"></td>\n";
  14.     echo "        <td".$row['HD']."><span style=\"font-size: x-large; font-weight: bold;\">".$row['TITLE_ES']."</span><br><span style=\"color: gray;\">".$row['TITLE']." - ".$row['YEAR']."</span><br><br><strong>Genero:\n";
  15.     echo "        </strong>".$row['GENRE']." ".$row['GENRE2']."<br><strong>Idioma: </strong>".$row['LANGUAJE']."<br><strong>Duracion:\n";
  16.     echo "        </strong>".$row['TIME']."<br><br><strong>Reparto: </strong>";
  17.  
  18.            for($i = 0 ;$i < $count_result;$i++){
  19.          
  20.                    echo '<a href="#">'.$starring_format[$i].'</a>   %nbsp; ';          
  21.  
  22.            }
  23.  
  24.     echo "<br><strong>Director:\n";
  25.     echo "        </strong>".$row['DIRECTED']."<br><br><strong>Sinopsis: </strong>".$row['PLOT_ES']."</td>\n";
  26.     echo "    </tr>\n";
  27.     }
  28. echo "</table>";