1

I have an app store where users can select the apps that they want to display on their home screen and if they select the app, it will change the value in the column for that app from 0 to 1 in the row associated with their email. I want to check if that app equals 1 and display the code on the page for that app.

Right now I am trying to SELECT from the database where the app is located and say that if that variable is equal to 1 then do something

$netflix = "SELECT netflix FROM video WHERE email='$videoemail'";
if($netflix == 1) {
  $netflixapp = '<a href="iframes/video/netflix.html"><div class="library-object video"><img src="https://yt3.ggpht.com/a-/AAuE7mAl-SFLIFoYxNhmk3m6xPT-d1oTec2sEvxThw=s900-mo-c-c0xffffffff-rj-k-no"><p class="object-info ">Netflix<p /></div></a>';
}

And in the body I have

<?PHP echo $netflixapp; ?>

to echo the variable if it exists

It is not working, so any help would be greatly appreciated

CoderColin14
  • 51
  • 1
  • 8

0 Answers0