cindreta Posted September 21, 2006 Share Posted September 21, 2006 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 More sharing options...
Orio Posted September 21, 2006 Share Posted September 21, 2006 [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 More sharing options...
cindreta Posted September 21, 2006 Author Share Posted September 21, 2006 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 Link to comment https://forums.phpfreaks.com/topic/21546-public-or-private/#findComment-96215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.