so I build website with slider in home page and want to have function when they click the slider it will go to link that I input it on database. So here is the code
<div id="demo-1" class="imgsl" data-zs-src='[<?php $slno=1; $bannerhome=mysql_query("select * from banneratas where tampil='y' order by nobanner desc");
while($bn=mysql_fetch_array($bannerhome)){
$linkbanner=trim($bn['links']);
if($slno===1){ ?>
"<?php echo "<a href='$linkbanner' class='linkabsolute' target='_blank'>$_COOKIE[config]dynamic/1366/assets/slide/$bn[gambar]</a>";?>"
<?php
else{?>,
"<?php echo "$_COOKIE[config]dynamic/1366/assets/slide/$bn[gambar]";?>"
<?php } $slno++;} ?>]'>
So I try with $linkbanner
variable (line 3) to get the link but found error when I call it on line 5
my error will retrieve image source like this
Thanks