Skip to content

modiritrade/airdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airdrop

A telegram airdrop script that users can earn tokens by tapping

PHP Airdrop Dashboard

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.

✨ Features

  • 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

📌 How It Works

The main file (index.php) handles three core operations:

  1. Database connection
    Connects to a MySQL database using credentials you define in the file.

  2. User creation
    When the user submits the form, their data is inserted into the users table.
    After successful creation, the new user’s ID is saved in a session and shown on page reload.

  3. Airdrop information viewer
    All records from airdrop_table are fetched and displayed, including:

    • Participant name
    • Email
    • Airdrop amount

All output is HTML‑escaped for security.

🧱 Database Requirements

This project expects two basic tables:

Table: users

  • id (INT, AUTO_INCREMENT)
  • username (VARCHAR)
  • email (VARCHAR)

Table: airdrop_table

  • id (INT, AUTO_INCREMENT)
  • participant_name (VARCHAR)
  • email (VARCHAR)
  • airdrop_amount (FLOAT / DECIMAL)

You may rename or expand these tables as needed.

🚀 Installation

  1. Clone or upload the project to your PHP server.
  2. Update these fields in index.php with your own database info:
   $db_host = "localhost";
   $db_user = "your user name";
   $db_pass = "your password";
   $db_name = "your DB";


   

About

A telegram airdrop script that users can earn tokens by tapping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors