os dejo el texto, deciros tengo que ya lo e intentado asi :
<p><strong>Actores:</strong> '.substr($registro['actores'],0,100)."..."'</p>
y asi:
<p><strong>Actores:</strong> '.substr($registro['actores'],0,100)."...";'</p>
pero como va dentro de un codigo <div> </div> me da un error.
aki os dejo el codigo entero,
Código PHP:
<?php
include('config.php');
$query = 'SELECT * from filmoteca1 WHERE novedad="1" ORDER BY id DESC LIMIT 10';
$res=mysql_query($query);
$filas=mysql_num_rows($res);
$n=1;
echo '<h6>Novedades ('.$filas.')</h6>';
while($registro = mysql_fetch_array($res)) {
if ($registro['trailer']!='') {$trailer='<img src="img/trailer1.gif" alt="trailer" width="25" height="25" /> ';} else {$trailer='';}
echo '
<div id="elemento'.$n.'" class="elemento">
<a href="?seccion=ficha&id='.$registro['id'].'&titulo='.strtolower($registro['titulo']).'"><img src="img.php?ruta=portadas_peliculas/'.$registro['portada'].'&max=120" alt="'.$registro['titulo'].'" class="portada"/></a>
<h5>'.$trailer.$registro['titulo'].'</h5>
<p><strong>Director:</strong> '.$registro['director'].'</p>
<p><strong>Actores:</strong> '.substr($registro['actores'],0,100).'</p>
<br />
<p><img src="img/dvdlogo.gif" alt="dvdlogo" width="72" height="29" /></p>
</div>';
}
?>