Learning Reflection Journal Post #10

Creating CRUD Systems Learning Resources

We This week it was hard to me.

This week we learned how to update the sql information on the table with crud “create””update””delete”. Unfortunately, this time it was necessary to decode the codes by doing a lot of research with very little information. Although with a delay, I reached the result and I was able to submit the assignment.

Here is my link = https://tubap.webdevstudent.me/Lab7/list_dep.php

Some important codes =

<td><?php

                        // Usage of if-else statement to translate the

                        // tinyint status value into some common terms

                        // 0-Inactive

                        // 1-Active

                        if($department[‘status’]==”1″)

                            echo “Active”;

                        else

                            echo “Inactive”;

                    ?>    

and

  <td><a href=”edit_department.php?department_id=<?php echo $department_id; ?>”>update</a></td>        

            </tr>

Leave a Reply

Your email address will not be published. Required fields are marked *