Discuss Select option from database in the PHP Development forum on Dev Shed. Select option from database PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Posts: 148
Time spent in forums: 18 h 39 m 9 sec
Reputation Power: 1
Select option from database
Hi. I have a database which holds a 'Task status' this can be - klaar
- bezig
- hold
Now when the users sets a status. I want the user to see what he has set, problem is with my method that it shows - hold ( currently set )
- klaar
- bezig
- hold
So it's showing the other value again cause it doesn't know that this is the selected one. How can i make sure the select doesn't repeat options.. this is my code
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Posts: 12,717
Time spent in forums: 5 Months 1 Week 4 Days 7 h 29 m 55 sec
Reputation Power: 8969
It is, and we're totally free to discuss stuff, but questions like "what does this function do?" really are best answered by a trip to the manual. There's much more information there than anyone here would be willing to type out.
Posts: 9,811
Time spent in forums: 2 Months 3 Weeks 19 h 13 m 52 sec
Reputation Power: 6112
It was supposed to be removed from the language but people like Requinix are old dogs and can't be taught new tricks, and they complained loudly enough that it got put back into the language forever.
Posts: 148
Time spent in forums: 18 h 39 m 9 sec
Reputation Power: 1
Quote:
Originally Posted by ManiacDan
It was supposed to be removed from the language but people like Requinix are old dogs and can't be taught new tricks, and they complained loudly enough that it got put back into the language forever.
Are there other nice php shorttags that make typing easier? the <?= is really handy!