Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

You are required to implement a PHP Web Based front end system. This system will connect to the database back end which stores all the animal details. The SQL script to create all required tables is...

1 answer below »
You are required to implement a PHP Web Based front end system. This system will connect to the database back end which stores all the animal details. The SQL script to create all required tables is supplied. You must run this script from within phpMyAdmin to create the required databases and users.You are required to submit 6 core PHP files. 1. login.php 2. home.php 3. add.php 4. edit.php 5. delete.php 6. logout.php If you use other files in the completion of your assignment, you must supply these as well. You are required to submit 5 screenshots showing each of the above .php files, the pdf file is the specification and the zip file contains the required sql server.
Answered Same Day Sep 10, 2020 COIT12207 Central Queensland University

Solution

Gaurav answered on Sep 13 2020
130 Votes
add.php
?php
@session_start();
equire_once('connection.php');
?
?php
if(isset($_POST["submit"]))
{
    
$name = $_POST['name'];
$type = $_POST['type'];
$fee = $_POST['fee'];
$sex = $_POST['sex'];
$desexed = $_POST['desexed'];
    
     $query = "INSERT INTO animal (name,animal_type,adoption_fee,sex,desexed) VALUES ('$name','$type','$fee','$sex','$desexed')";
if(mysqli_query($con, $query) or trigger_e
or(mysqli_e
or($con)))
{
echo '