Answer the question
In order to leave comments, you need to log in
Where is the error and what is it?
The code
<?php if($data['airline'] == null) echo "Обновление"; else echo "<img width='100' height='50' alt='авиакомпания на рейс Москва Санкт-Петербург' src='//site.ru/100/40/<?=$data['airline'] ?>.jpg' class='lazyload air'>" ?>
Syntax Error, Unexpected $EOF, Expecting T_String or T_variable or T_num_String
$data['airline']
it does not have any values, then we write "Обновление"
, if there are values, then issue this<img width="100" height="50" alt="авиакомпания на рейс Москва Санкт-Петербург" src="//site.ru/100/40/<?=$data['airline'] ?>.jpg" class="lazyload air"/>
Answer the question
In order to leave comments, you need to log in
<?=$data['airline'] ?>
replace with {$data['airline']}
and after the output expression put;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question