0
How do I limit the amount of letters that will appear in <?= $v['titulo']?>
within the <div class="col-md-4 panel">
I’ve tried a lot of things, but it’s a mistake.
<?php $result = selectAllAnuncios(1,18); foreach ($result as $k => $v):
$link = "anuncio,".$v['id'].",".str_replace(" ","-",$v['titulo'])."-".str_replace(" ","-",$v['ano']);
$image = (@is_file("img/anuncios/".$v["imgs"][0]["name"])) ? "img/anuncios/".$v["imgs"][0]["name"] : "img/no-img.jpg" ; ?>
<div class="col-md-4 panel ">
<a href="<?=$link?>"> <img src='<?=$image?>' width="200" height="100">
<div ><?=$v['titulo'] ?> </br> <?=$v['ano']?> - R$ <?=$v['preco']?>
</a>
</div>
</div>
<?php endforeach; ?>
You tried to replace him?
– Sr. André Baill
What would be these mistakes?
Exceptions
or does not limit the characters? ...– JcSaint
You want me to show up like, title here...
– Sr. André Baill