My last three posts have been rather focused on functionality, so now let’s switch gears a little and discuss how to implement a quality-of-life CSS feature… offering an easy choice of a light or dark mode for your site. This…
Continue ReadingUsing JavaScript to Preview an Image Upload
If you’ve read my last two posts (most recent one here), you now know a way to upload and retrieve an image to/from a mySQL database. The examples provided, however, are pretty barebones. There are a lot of quality-of-life features…
Continue ReadingHow to Display an Image Blob from a mySQL Database (using PHP)
In our last post, we discussed how to save an image – as a binary large object, or blob – into a mySQL database using PHP. In this followup, we’ll be putting that image to actual use as we retrieve…
Continue ReadingUsing PHP, How to Save an Image to mySQL as a Blob
Recently, I was working on a personal project that, due to its nature, was best served by saving a handful of images in a mySQL database along with my other data. I spent quite a while researching how to do…
Continue Reading