Jump to content

Archived

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

cindreta

public or private?

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Ye i figurded out how to get it out from the database but how to get it in. should i put a drop down or just a mark button and can someboy please put a php code for inserting it to the database thank you

Share this post


Link to post
Share on other sites

×

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.