Jump to content

public or private?


cindreta

Recommended Posts

Hi,yes i got a question well how can i do this.. i got a upload form for images right and now i would like to add a choiche for user before the uload that they can chosse weater their picture will be private or public. So basicly they upload in the same directory but  one with private and one with public option. I really would need hel with this cos i cant figure it out all by myself. Then what i would like to do is to get all images from the public database and display them. Thank you...very much i know maybe i asked too much but i know u guys will figure it out.

Im thinking somthing like this if make public is checked then the script stores that picture with value 1 in the database if not then 0... so please help me
Link to comment
https://forums.phpfreaks.com/topic/21546-public-or-private/
Share on other sites

[quote]Im thinking somthing like this if make public is checked then the script stores that picture with value 1 in the database if not then 0... so please help me[/quote]

That's exactly what you should do. Then, your SQL query would be:
SELECT * FROM pictures WHERE is_private='1'

Orio.
Link to comment
https://forums.phpfreaks.com/topic/21546-public-or-private/#findComment-96172
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.