إعلانيمكن أن تكون علامتك التجارية هناعلامتك التجارية هنافي كل صفحة من Darslab · طلاب وأولياء أمور ومعلمونinfo@darslab.comاسأل عن الأسعارالأسعارinfo@darslab.com
☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

The Add Term code

الأسبوع 14 · الوحدة ٣ «إنشاء صفحات الموقع» (٧) الموضوع الثالث صفحة Add_Term.php: الكود المختصر وما ينقصه، الكود الأدق بالفحص والرسائل، حفظ السجل والتأكد من الجدول · 3 دروس
Answers are for parents and teachers.
1
Write the PHP condition that is true only when $term, $trans and $defe are all non-empty after trim.
2
What do these give? (a) basename("pic/cat.webp") (b) empty("0") (c) $x ?? "none" when $x was never set
3
A term is “don’t stop”. Explain why gluing it into an INSERT breaks the command and how a prepared statement avoids this.
4
Give three reasons why the Add Term page needs the precise code and not only the short code.
5
After a save, which two things should you look at: the visitor’s message and what else?