Jump to content

Recommended Posts

Hello,

I am making a website and on one of my pages I want to show the data from a table on my MySQL,

everything is set up fine but I want to exclude certain files from it,

the page displays mp3 files and I only want certain files to be displayed,

In my table I included a column, active_music, which tells my database if the file is active or not,

I want to exclude the inactive music from being displayed on the page.

for example lets say I had these files and title2.mp3 was labled inactive:

 

title1.mp3

title2.mp3

title3.mp3

 

how can I get "title2.mp3" not to be shown?

 

If I need to include my PHP code in order to make all this easier to answer, just let me know.

 

P.S.  I dont know if this topic should have been posted here or in the PHP Help forum, sorry if I put it in the wrong place

 

Link to comment
https://forums.phpfreaks.com/topic/56920-solved-exlude-files/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.