MySQLi. PHP. GET. POST. Insert. Update. Delete. Segur SQL Inject

You can upload images as blobs directly into mySQL (there is another guide here by @Juan_Antonio on this very topic - read the whole topic), but the recommended method is to upload the image to a directory on your server and get the url to the image (you can use php for this as well), and store this url in the mySQL database. Ensure your image directory has permissions for saving and reading. You should consider resizing your images to suit your target audience.

1 Like