Jump to content


Photo

public or private?


  • Please log in to reply
2 replies to this topic

#1 cindreta

cindreta
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 21 September 2006 - 05:05 PM

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

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 21 September 2006 - 05:52 PM

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


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

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 cindreta

cindreta
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 21 September 2006 - 06:45 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users