3 ms·
I actually worked at a place a guy did use SQL to build pages. He had very very long select statements with phrases like "SELECT '<td>' + u.user_id + </td>' FR
by jqm 11y ago
I actually worked at a place a guy did use SQL to build pages. He had very very long select statements with phrases like "SELECT '<td>' + u.user_id + </td>' FROM users u" and actually returned whole web pages from his selects. Then he fed this into some sort of ASP/Perl abomination he had cooked up for display. Later he got clever and decided just to store the html with embedded data directly in the database. Worked OK for him until he needed to actual data and not the html. Then it was mile-long Perl regular expressions to the rescue! Needless to say it was a horrible buggy mess.
I didn't stay at that place very long.
- bradbatt 11y agoWow. Reads like a thedailywtf.com story!