Linux.com

Re:Garbage. Disappointing garbage.

Posted by: Anonymous Coward on January 28, 2007 02:13 AM
This is an article on using the php functions date() and mktime(), and php arrays, to create a calendar control. It is not an article on writing functions.

I used is_numeric to block sql injection attempts (though the mysql connection user only has SELECT privileges on the underlying db). If someone gets spurious returns by manipulating the querystring, that is not a concern of mine, as long as they cannot harm my server.

I use error messages in code during development, and often remove them when finished, especially if I think the error is going to be caused by malicious actions. I do not generally provide feedback to crack efforts.

The rest of your comments appear to be juvenilia, though you grammar leads me to believe you are older. I will simply point out that social skills can be learned, like most other skills.

Don McArthur

#

Return to A DIY calendar control in PHP