php code not running
<p>Trying to populate a mysql database, but if i send the variables with postman or android studio i get this </p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;404 Not Found&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;404 Not Found&lt;/body&gt;
&lt;/html&gt; 
</code></pre>

<p>this is my php code, i leftout the db username and such for security but i assure you they are correct</p>

<pre><code>&lt;?php

/*
 * Following code will create a new product row
 * All product details are read from HTTP Post Request
 *ordernum,pilotname,pilotcash,date,planemodel,hoobsstart,hoobsend,watchtime,hoobstime ,gas ,liter ,repairname ,repaircost ,travelexpense,othername1,othercost1
 */

// array for JSON response
$response = array();

// check for required fields
if ( isset($_POST['pilotname']) &amp;&amp; isset($_POST['pilotcash']) &amp;&amp; isset($_POST['date'])  &amp;&amp; isset($_POST['planemodel'])&amp;&amp; isset($_POST['hoobsstart'])&amp;&amp; isset($_POST['hoobsend'])&amp;&amp; isset($_POST['watchtime'])&amp;&amp; isset($_POST['hoobstime'])&amp;&amp; isset($_POST['gas'])&amp;&amp; isset($_POST['liter'])&amp;&amp; isset($_POST['repairname'])&amp;&amp; isset($_POST['repaircost'])&amp;&amp; isset($_POST['travelexpense'])&amp;&amp; isset($_POST['othername1'])&amp;&amp; isset($_POST['othercost1'])) {

    $pilotname = $_POST['pilotname'];
    $pilotcash = $_POST['pilotcash'];
    $date = $_POST['date'];
    $planemodel = $_POST['planemodel'];
    $hoobsstart = $_POST['hoobsstart'];
    $hoobsend = $_POST['hoobsend'];
    $watchtime = $_POST['watchtime'];
    $hoobstime = $_POST['hoobstime'];
    $gas = $_POST['gas'];
    $liter = $_POST['liter'];
    $repairname = $_POST['repairname'];
    $repaircost = $_POST['repaircost'];
    $travelexpense = $_POST['travelexpense'];
    $othername1 = $_POST['othername1'];
    $othercost1 = $_POST['othercost1'];


     define('DB_USER', "`enter code here`"); // db user
define('DB_PASSWORD', ""); // db password (mention your db password here)
define('DB_DATABASE', ""); // database name
define('DB_SERVER', ""); // db server
// array for JSON response



 $conn = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD,DB_DATABASE);


$sql = "INSERT INTO orden(pilotname,pilotcash,date,planemodel,hoobsstart,hoobsend,watchtime,hoobstime,gas,liter,repairname,repaircost,travelexpense,othername1,othercost1) VALUES('$pilotname','$pilotcash','$date','$planemodel','$hoobsstart','$hoobsend','$watchtime','$hoobstime','$gas','$liter','$repairname','$repaircost','$travelexpense','$othername1','$othercost1')";

    // mysql inserting a new row
   $result = $conn-&gt;query($sql) or die (mysqli_connect_error()); 

    // check if row inserted or not
    if ($result) {
        // successfully inserted into database
        $response["success"] = 1;
        $response["message"] = "Product successfully created.";

        // echoing JSON response
        echo json_encode($response);
    } else {
        // failed to insert row
        $response["success"] = 0;
        $response["message"] = "Oops! An error occurred.";

        // echoing JSON response
        echo json_encode($response);
    }
} else {
    // required field is missing
    $response["success"] = 0;
    $response["message"] = "Required field(s) is missing";

    // echoing JSON response
    echo json_encode($response);
}
?&gt;  
</code></pre>