lundi 1 juillet 2019

Showing ads to only non-donors

Essentially I understand the basics of @if statements but for some reason I can seem to get the one I need to work.

So I have I table in my database called patrons, it stores user_id and level

What I can't get to work (or even close) is having a @if statement that checks the currently browsing user to see if their ID is in the patrons table and level is above 1 and if its not, shows the ad script

Any help or direction is appreciated

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Top -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-1111111111"
     data-ad-slot="111111111"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2J39NTB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire