I'm getting to the point where I can actually have an idea and make it happen even if it's not just a variation on one of the projects in the books I've been working through. Friday i decided it would be cool to have a series of checkboxes, one for each day of the week, then take the checked values and have the day names output as a string with
(
Read more... )
Comments 12
Reply
Reply
Reply
As I understand it, "bind variables" basically means using variables in a SQL query so the query can be reused without being rewritten. Is that about right? If so, then yes.
Reply
Actually, it sounds like a great learning exercise: A step or two above trivial, but not so difficult that it takes days and days of work. It solves a real-world problem, rather than some abstract puzzle, and it's something that can be solved with some intelligence and effort, but doesn't require some creative "A-ha!" realization. I like it!
While reading, I was expecting you to say it should print out a list of weekday names with "and" in the right place, which is a problem I wrote a function for a long time back. Interpolating a list with "through" is a different problem, and one I'm going to have to ponder a bit once the caffeine kicks in.
Reply
When I implement this on the site I'm making it for I'm going to use abbreviated day names, and an em dash instead of "through." It's for a part of a site that has space limitations, so I'm trying to shorten the display of the list of days the client's business is open.
Reply
Reply
Reply
Leave a comment