View Categories

Code-php+MySQL (en)

7 Docs

dataValidate (en)

Last Updated: 2026-09-15

A set of PHP form validation functions that use ereg() regular expressions to check fields, email, HKID, phone number, and birth date.

DB-Connect MySQL (en)

Last Updated: 2026-09-15

Connect to a MySQL database with mysqli_connect() — pass in servername, username and password.

DB-Edit MySQL Record (Read Data to Populate an HTML Form and Write Back) (en)

Last Updated: 2026-09-18

<p>This guide shows how to edit a MySQL record with PHP: read one row by id, populate an HTML form, then write the changes back with UPDATE. It covers four field types — single-line text, multi-line text, checkbox, and radio button.</p>

DB-Read MySQL Records with PHP (Paginated Table Display) (en)

Last Updated: 2026-09-18

This guide shows how to read every record from a MySQL table with PHP and display them in a paginated table, so the page isn't slowed down by loading too many rows at once.

DB-Write MySQL with PHP (Data from an HTML Form) (en)

Last Updated: 2026-09-18

This guide shows how to accept data from an HTML form with PHP and insert it into MySQL, using prepared statements to prevent SQL injection.

php file upload (en)

Last Updated: 2026-09-15

Upload an image with PHP — checks for a real image, duplicates, size and format before saving to uploads/.

phpMailForm (en)

Last Updated: 2026-09-15

An application form with an HTML form and PHP mail(); posts to mail_handler.php to send the email.

Scroll to Top