A telegram airdrop script that users can earn tokens by tapping
A simple and lightweight PHP + MySQL dashboard for managing user registrations and displaying airdrop participant data.
This project is suitable for token airdrops, giveaway campaigns, Telegram airdrop bots, or any system that needs basic user creation and data listing.
- User registration form (username + email)
- Saves new users into the database using secure prepared statements
- Displays the ID of newly created users via PHP sessions
- Lists all airdrop participants pulled from the database
- Shows participant name, email, and token/airdrop amount
- Simple, clean interface with pure HTML/CSS
- No external dependencies – works on any PHP hosting environment
The main file (index.php) handles three core operations:
-
Database connection
Connects to a MySQL database using credentials you define in the file. -
User creation
When the user submits the form, their data is inserted into theuserstable.
After successful creation, the new user’s ID is saved in a session and shown on page reload. -
Airdrop information viewer
All records fromairdrop_tableare fetched and displayed, including:- Participant name
- Airdrop amount
All output is HTML‑escaped for security.
This project expects two basic tables:
- id (INT, AUTO_INCREMENT)
- username (VARCHAR)
- email (VARCHAR)
- id (INT, AUTO_INCREMENT)
- participant_name (VARCHAR)
- email (VARCHAR)
- airdrop_amount (FLOAT / DECIMAL)
You may rename or expand these tables as needed.
- Clone or upload the project to your PHP server.
- Update these fields in
index.phpwith your own database info:
$db_host = "localhost";
$db_user = "your user name";
$db_pass = "your password";
$db_name = "your DB";