4
well I’m trying to put on the slide the images but the bet is breaking , where is the error? edited below the summary after the tests I did even using the \ .
meu codigo atual
echo "<div class='fill' style='background-image:url(\'img/{$exibe[0]->idnoticia}/{$exibe[0]->imagem}\');'></div>";
codigo de exemplo do bootstrap
<div class="fill" style="background-image:url('http://placehold.it/1900x1080&text=Slide One');"></div>
codigo exibido pelo browser
<div class="item active"><div class="fill" style="background-image:url(\" img="" 22="" 1429033737_screenshot_11.jpg\');'=""></div>
I really don’t understand what’s going on if someone can shed a light so just remembering that this way works, however I would like to know what the error above
<div class="fill" style="background-image:url('img/<?php echo "{$exibe[0]->idnoticia}/{$exibe[0]->imagem}"; ?>');"></div>
was unaware of this heredoc syntax, I tested it here and it worked, how much its solution to my problem had also tried also not worked
– Arsom Nolasco
I’ll test it later, there must be some stupid mistake.
– Édipo Costa Rebouças
I think I’ve solved.
– Édipo Costa Rebouças
can change the code or post Aki in the comments what you did?
– Arsom Nolasco
I changed the answer,.
– Édipo Costa Rebouças
follow example http://sandbox.onlinephpfunctions.com/code/1256f8257f5ba5bc574817d95b86f8b0156b8b87
– Édipo Costa Rebouças