I have alt
and title
tags that contain data from a table that are appended with the base_url
that I would like to remove. When I do so the alt
tags show up empty. Currently the is what the code is:
<img title="<?php print_r(base_url().
$promo5['data'][0]->CarouselImageTitleAtribute);?>"
alt = "<?php print_r(base_url().$promo5['data']
[0]->CarouselImageAltAtribute);?>'/.
The result is this:
<img title="https://www.example.com/Click here to read about
our custom products"
alt = "https://www.example.com/Custom colored products"/>
I need to remove the https://www.example.com/ and only keep the value in the table (CarouselImageAltAtribute) I have tried using
<?php echo $promo5->CarouselImageAltAtribute; ?>
With no luck.