<img src="<?php echo IMAGE_SMALL_PATH ?> <?php echo $row['small']; ?>" alt="<?php echo $row['alt']; ?>" /> 

on the way to the image that is stored in define IMAGE_SMALL_PATH and the image from the database itself - how to merge it?

    1 answer 1

     <img src="<?= IMAGE_SMALL_PATH . $row['small'] ?>" alt="<?= $row['alt']; ?>" /> 
    • and that's all? what more is not needed? - user33274
    • If you want to combine the IMAGE_SMALL_PATH constant and the $ row ['small'] variable, then nothing else is needed. The binding goes through the point. - Urmuz Tagizade
    • one
      @LenovoID not, <?=IMAGE_SMALL_PATH . $row['small']; ?> <?=IMAGE_SMALL_PATH . $row['small']; ?> <?=IMAGE_SMALL_PATH . $row['small']; ?> . <? = this is already <?php echo . The reduction is - Vasily Barbashev
    • one
      This is syntactic sugar) For example, I prefer through echo, rather than the abbreviated version. In IDE, for example, more noticeable and more pleasant) - Urmuz Tagizade
    • one
      This is the same) --- s017.radikal.ru/i422/1604/b5/5bffaef62079.png - Urmuz Tagizade