Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
user options, like on this board for example, you can tell it to "show/hide your email address." How would you go about doing that?
I pondered up a few ideas but just thought there'd be something better
1. make a extra column in the MySQL table and set the default to 0 (not show) and use the UPDATE feature to change it to 1(to show it)
2. set a cookie
3 sessions (i'd rther stay far away from them personally)
Just curious to see if anyone else has/use a more creative way that perhaps dont require any of the above, cheers for your thoughts
lol you lazy people, i was asking if there was an alternate way I didnt think about.
I was leaning towards the table method as thats how i've done things before, thats all I needed to know. i'll go about it that way, kudos for the road path
I once tried a revolutionary new biological processor. Six pandas are kept in a cage. If the user selects "show email" the pandas get fed a ton of bamboo, if not they don't.
$pandas->isValid() returns state: either snoozy, contented pandas or grumpy, snarling pandas.
It's kind of tough on the pandas if no-one wants to show their email and it didn't work anyway. Pandas are always grumpy, snarling sons of b****s even when they are well-fed.
You could store the users settings in a text file ? The methodology behind this is pretty much the same as if you were doing it with a mySQL table, the only difference is in how you would do it. It might also take longer than using a mySQL table.