After deciding once again to challenge myself to building a site in PHP and CSS in 5 minutes with only a database sitting in the background already setup; my latest attempt has been upload.
Not exactly the most pretty site on the internet but, it is not the worst either! Most of my time was spent on the CSS but as my stopwatch approached the 3 minute mark I knew it was time to tackle the simple php.
If you notice, on clicking a link (only 3 work, ran out of time), I decided to write pages as functions! Sounds weird BUT when you think about it, 1 index page so you do not duplicate for about etc. For small sites … its still not a good idea.
Would have saved so much time just copying the index htlm and pasting into another file, changing two or three lines instead of a bunch of IF statements. Simplistic yes, but so ugly. More time on the challenge would have given me a chance to slap down the code and make it so adding a different number or variable wouldn’t display a blank page, also add to the .htaccess to hide all the things!
If I have any free time over the coming days will do a 10 minute challenge, more results!