Motto : I'ma ignore this nonsense
coming from a fella who doesn't program.
Recently I found myself in need of a web db interface ; don't ask why or how and I won't have to tell you.
Turns out such a thing actually exists : phpMiniAdmin by OSAlabs aka Oleg Savchuki is a 40kb, single-file interface so you don't have to type all your selects by hand all the time until you fall over.ii Here you have it : phpminiadmin v1.9.170312 (edited). Supposedly this is the latest version.
The above item is not, however, the file you can download from the author directly. Why not ? Well, because after a cursory read through (turns out it doesn't actually take half an hour to read through 40kb of php, provided of course one doesn't program) and dumping it on the afflicted server, it turned out it... didn't work!
Specifically -- in the original v 1.9.170312, pressing "Go" did nothing useful, but instead simply dumped one to a generic screen, as if he had tried to execute an empty string. Why the hell was it doing that ?
Turns out finding out why the hell it did that doesn't actually take one ten minutesiii : line 497 (of 1`278 total, if you care) read simply
<input type="submit" name="GoSQL" value="Go" class="sbtn">
instead of the obviously preferable
<input type="submit" name="GoSQL" value="Go" class="sbtn" onclick="$('q').value=window.btoa($('qraw').value);">
Consequently, when you clicked Go it simply tried to execute a null string as a query, no matter what you put in the box. But thanks to the magic of not programming, it doesn't do that anymore.
Be so kind as to point this out to the original author, if you have some manner of contacting him ; and always remember : of the people who don't fuck pigs, only some don't fuck pigs because they've no penises.———
- Elance nowadays (obtained via acquihire of "rentacoder.com") with some pretense to independence on the side (but the site no longer loads). [↩]
- Yes, yes, I'm sure you configured your emacs in such a way it does all the explains by itself and other magics. Some fellas don't program. [↩]