Jump to content

[SOLVED] Exlude Files


Northern Flame

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.