My portfolio site occasionally throws a “network connection was lost” message whenever the Gallery tries to pull images that sit in my MySQL tables (managed through phpMyAdmin). All images are stored on the phpmyadmin database, yet the call sometimes fails and nothing renders. On top of that, the upload feature will randomly reject perfectly normal files with an “image size is too large” alert. I need the underlying causes traced and resolved—whether they stem from PHP-MySQL queries, server time-outs, mis-set upload limits, or front-end handling. Optimising the image pipeline (compression, proper sizing, lazy-loading if helpful) and making sure the gallery displays reliably are key. Deliverables • Diagnose and eliminate the intermittent “network connection was lost” error on the Gallery page • Fix or refactor the upload logic so legitimate images of reasonable size are always accepted, with clear validation for genuinely oversized files • Ensure all images stored locally load quickly and consistently from the database across modern browsers and mobile devices • Brief report outlining the root cause, code changes, and any server-side settings modified