Question: I've been working on a payroll management system and this assignment I need help doing the following listed below. What I have done is attached.
addEmployee.php x employeeld.php lastinsertedld.php x validateData.php 1 k?php 2 $con mysqu connect ("localhost password"); UserName' 3 if (!$con) die ('Could not connect: mysql error()); 7 mysq select db("databaseName", $con); 9 if (empty POSTI first name])) H 10 echo "Please enter first Name!'; 11 13 if (isset POST[lastnamel)) H echo "Please enter Last Name! 14 15 16 17 $squ INSERT INTO BMPLOYEE(FIRST NAME, LAST NAME, GENDER) VALUES(' POSTlfirstnamel', 's POST [last name] POSTlgender] 18 19 if (!mysqu query ($sql,$con)) 20 ('Error: mysqu error()): die 21 22 23 echo "1 record added": 24 25 mysqu close ($con); 26 27
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
