![]() |
#2
|
||||
|
||||
![]()
After looking through the daycare's files, turns out there's actually a pretty short solution that I was able to come up with.
1. First I went into phpMyAdmin, owned_adoptables, and added a new column like this: Quote:
PHP Code:
![]() 3. Now there's how to update it. This is where my brain started to fry. I'm unsure of this part since most people have their owned_adoptables.php set up differently than others (including myself). Here's one way of doing it: *Create a new form with two radio buttons, one named "do exclude" and one named "do not exclude" (or something like that). * Then create an if statement so that if the person selected do exclude, this line happens: PHP Code:
PHP Code:
I haven't tested the part where users change it themselves, since I have absolutely no idea how radio buttons work. I have tested the parts before it though, and it does work if you were to change the value manually through phpMyAdmin. Here's a mockup code of the different button conditions, but that's where my knowledge ends unfortunately. It won't work on it's own, but it can give you an idea of what you need to do: PHP Code:
__________________
|
|
|
What's New? |
What's Hot? |
What's Popular? |