I have this code that i can run without any problem on my localhost machine.
@foreach($filmesactuais as $filmeactual)
@if(isset($filmeactual->visto) and ($filmeactual->visto) == "1")
<tr bgcolor="lightgray">
@else
<tr>
@endif
<th><a href="/"> </a> ()
@foreach($oscar as $osc)
@if(str::contains($filmeactual->elenco, $osc))
<img src="">
@endif
@endforeach
As you can see, i have a foreach inside another foreach. The $filmeactual->elenco is a long string and $osc is an array with, more or less, 20 elements.
On my localhost i run this code without any problem, but on my shared host i got a 500 server error. Anyone can help me to understand why this is happening.
Thanks a lot!
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2NpmqKs
via IFTTT
Aucun commentaire:
Enregistrer un commentaire