INSERT, watched in real time
Data Entry Lab
Every form below runs one real INSERT statement with a prepared statement and
real parameters. After you submit, this page shows exactly what happened: the SQL shape, the
new Primary Key MySQL generated, and how it connects to other tables.
نیچے دیا گیا ہر فارم پری پیئرڈ اسٹیٹمنٹ (Prepared Statement) اور محفوظ پیرامیٹرز (Parameters)
کے ساتھ ایک حقیقی INSERT کیوری چلاتا ہے۔ فارم جمع کرنے کے بعد، یہ صفحہ واضح
کرتا ہے کہ ڈیٹا بیس میں دراصل کیا ہوا: ایس کیو ایل (SQL) کی ساخت، MySQL کی طرف سے خود بخود
تیار کردہ نئی پرائمری کی (Primary Key)، اور دوسرے ٹیبلز کے ساتھ اس ریکارڈ کا ربط۔
Add Student
Add Parent
Link Parent to Student
Add Teacher
Add Subject
Add Class
Enroll Student
Assign Teacher to Subject/Class
Mark Attendance
Create Exam
Enter Exam Result
Generate Fee Invoice
Record Payment
Explain this page
- What am I looking at?
- A real form, backed by a real
INSERTusing a PDO prepared statement — the values you type are bound as parameters, never concatenated into the SQL string, which is what makes this safe from SQL injection. - What happens after I submit?
- The browser is redirected back to this page (so refreshing never double-submits), and the green panel above shows the SQL shape and the new Primary Key MySQL generated.
- یہاں کیا نظر آ رہا ہے؟
- ایک حقیقی فارم، جس کے پیچھے PDO پری پیئرڈ اسٹیٹمنٹ (Prepared Statement) کے ذریعے
ایک اصل
INSERTچلتا ہے — آپ کی درج کردہ قدریں پیرامیٹر (Parameter) کے طور پر محفوظ طریقے سے منسلک ہوتی ہیں، انہیں ایس کیو ایل (SQL) میں براہِ راست جوڑا نہیں جاتا، جو اسے ایس کیو ایل انجیکشن (SQL Injection) سے محفوظ رکھتا ہے۔ - جمع کرنے کے بعد کیا ہوتا ہے؟
- براؤزر (Browser) اسی صفحے پر واپس بھیجا جاتا ہے (تاکہ ریفریش کرنے پر دوبارہ جمع نہ ہو)، اور اوپر سبز رنگ کا پینل ایس کیو ایل (SQL) کی ساخت اور MySQL کی طرف سے تیار کردہ نئی پرائمری کی (Primary Key) دکھاتا ہے۔