MYSQL insert is not working
<p>Technically it accepts all the input but there no any error message that there is something wrong with my code. The insert is located at the bottom part of the code which is strangely not working because I tried my insert statement in the database and of course changing the variables with real values and it worked that way.</p>

<p>Tried this insert statement in my workbench and it worked:</p>

<pre><code>INSERT INTO members (organization,login,password,name,title,profil,created,logout_time,timezone) VALUES ('1','Kristen','123','Kristen Crooks','Volunteer','2','2016-10-11 14:09','0','0')
</code></pre>

<p>Code:</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset="UTF-8"&gt;
        &lt;title&gt;&lt;/title&gt;
    &lt;center&gt;&lt;b&gt; Volunteer Management &lt;/b&gt;&lt;/center&gt;

    &lt;center&gt;
    &lt;a href="index.php"&gt;Add User &lt;/a&gt;
    &lt;a href="add_skill.php"&gt; Add Skills &lt;/a&gt;
    &lt;a href="assign_user.php"&gt;Assign User&lt;/a&gt;
    &lt;/center&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;?php

        $config = parse_ini_file('/config.ini'); 


        $conn = new mysqli($config['servername'], $config['username'], $config['password'], $config['database']);

        if ($conn-&gt;connect_error) {
             die("Connection failed: " . $conn-&gt;connect_error);
        } 

        $sql = "SELECT skillName FROM skills";
        $result = $conn-&gt;query($sql);
        $num=mysqli_num_rows($result);
        $conn-&gt;close();
    ?&gt;
    &lt;form method="get"&gt;

        Username: &lt;br&gt;
        &lt;input type="text" name="username"&gt; &lt;br&gt;
        Password: &lt;br&gt;
        &lt;input type="text" name="password"&gt; &lt;br&gt;
        Name: &lt;br&gt;
        &lt;input type="text" name="name"&gt; &lt;br&gt;
        Title: &lt;br&gt;
        &lt;input type="text" name="title"&gt; &lt;br&gt; &lt;br&gt;


        Permission:

        &lt;select id="permission" name="permission"&gt;
            &lt;option selected disabled&gt;Choose here&lt;/option&gt;
            &lt;option value="0"&gt;Admin&lt;/option&gt;
            &lt;option value="1"&gt;Project Manager&lt;/option&gt;
            &lt;option value="2"&gt;Volunteer&lt;/option&gt;
            &lt;option value="6"&gt;Accounting Officer&lt;/option&gt;
        &lt;/select&gt; &lt;br&gt;&lt;br&gt;



        Skills: &lt;br&gt;

        &lt;?php

            $i=0;while ($row = mysqli_fetch_assoc($result)) {

            $skillName=$row['skillName']; 

        ?&gt;

        &lt;input type="checkbox" name="skills" value="&lt;?php echo $skillName; ?&gt;" &gt;&lt;?php echo $skillName; ?&gt;&lt;br&gt;

        &lt;?php $i++;} ?&gt;
        &lt;br&gt;

        &lt;input type="submit" name="submit"&gt;

    &lt;/form&gt;

    &lt;?php
            if(isset($_GET['submit']))
            {
                $config = parse_ini_file('/config.ini'); 


                $conn = new mysqli($config['servername'], $config['username'], $config['password'], $config['database']);

                if ($conn-&gt;connect_error) {
                    die("Connection failed: " . $conn-&gt;connect_error);
                } 

                 $login = $_GET['username'];
                 $password = $_GET['password'];
                 $name = $_GET['name'];
                 $title = $_GET['title'];
                 $profil = $_GET['permission'];
                 $created = date('Y-m-d H:i:s');

                 $sql = "INSERT INTO members (organization,login,password,name,title,profil,created,logout_time,timezone) 
                                        VALUES ('1','$login','$password','$name','$title','$profil','$created','0','0')";
                 $result = $conn-&gt;query($sql) or die('Error, insert query failed');

                 $conn-&gt;close();
            }
    ?&gt;



&lt;/body&gt;
</code></pre>

<p></p>