HTML / PHP sites
Website Not Mobile Friendly: Fix Missing Viewport and Layout Problems
The page looks tiny or broken on phones. Add the viewport tag and make the layout flexible.
Site Broke After a PHP Version Upgrade: Deprecated and Removed Functions
Your host moved you to a newer PHP and the site now errors. Roll back for now, then update the code or plugins that are too old.
PHP Database Connection Errors (mysqli and PDO): Access Denied, Unknown Database, Connection Refused
Read the exact message and match it to the cause: credentials, host, database name or server down.
PHP File Upload Not Working: Size Limits, Permissions and Form Settings
Uploads fail silently or with an error code. Check the form, PHP limits and folder permissions.
PHP Site Shows a Blank Page or 500 Error: How to See the Real Error
A PHP page is blank or gives error 500. Turn on error logging safely, read the message and fix the line it names.
PHP Contact Form Not Sending Mail: Use SMTP Instead of mail()
Your hand-coded contact form runs but no email arrives. Replace mail() with PHPMailer and an authenticated SMTP mailbox.
HTML Website: CSS or Images Not Loading After Upload
Your page shows but without styling or pictures. Wrong paths, file name case and folder mistakes are the usual causes.
Stop Spam From Your Contact Form (HTML, PHP and WordPress)
Bots fill your form with junk. Add a hidden field, server-side checks, rate limits and a CAPTCHA if needed.
How to Add a Contact Form to a Static HTML Website Without Writing PHP
Static sites cannot send mail by themselves. Compare form services and a small PHP script, and keep spam out.
Redirect HTTP to HTTPS and www to non-www With .htaccess
Visitors reach your site at several addresses. Redirect everything to one address with a few .htaccess rules, without causing a loop.
Favicon Not Showing in the Browser Tab or Google Results
Your site icon does not appear. Check the file, link tag, size, caching and what Google requires.
404 Not Found: How to Find and Fix Broken Links on Your Site
Visitors land on pages that do not exist. Find the broken links, redirect old addresses and show a helpful 404 page.
How to Read the Browser Console and Network Tab to Find Website Problems
A beginner's guide to F12 developer tools: finding broken files, blocked requests and script errors in a few minutes.