Jump to content


Set picture default.. please help


1 reply to this topic

#1 Macintosh

    Young Padawan

  • Members
  • Pip
  • 28 posts

Posted 04 May 2007 - 05:57 PM

i request some help in my photo gallery page. I made a small gallery script everything works fine. Its works like, it shows photos on a page and below every photo it shows 'delete option".
Now i want to add a feature in it, i want to make one picture as default picture.
it would work like, it will show below every picture, "Make default"
and when it is default then it doesnt show the option to delete.
i have some idea about it, so that i have make a column "status" in mysql table. by default its value is 0. when someone click make default picture, it change the value of that image to 1 and all others into 0. logic is clear with me but im not getting into this code.. can someone please help?

#2 curthard89

    Young Padawan

  • Members
  • Pip
  • 226 posts

Posted 05 May 2007 - 08:03 AM

d/w pps, i cured it for him lol





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users