i have an echo statement. which am looping columns. and i want to use this onerror command
<img src="http://subinsb.com/to-an-image" onerror="this.src='img/delogo.jpg';"/>
but not working. how do i do this. thanks
echo ' <div class="col-lg-5 col-md-5 col-xs-12">
<h4 class="font_head_check">' . $title . '<span class="box_type_unik">For Sale</span></h4>
<p class="font_check">' . $town . '</p>
<span class="label label-info">GH¢ ' . ($currency == 2 ? number_format($price * $ratio) : number_format($price)) . '</span>
<span class="label label-default"></span>
<p class="agent_det_unika"><br/>' . substr($description, 0, 400) . '</p>
</div>
<div class="vertical-line" style=""></div>
<div class="col-lg-2 col-md-2 col-xs-12 col_comp_img">
"<img src="'.$logo.'" class="img-responsive result_comp_logo" onerror="this.src='img/delogo.jpg';">
<br/>
<p class="font_unik_comp" style="display:none;">Sunda Estates</p>
<p class="num_unika_size">' . $phone . '</p>
</div>
</div>';