PHP Code not working (Insert to DB)
<p>I have a db connection and want to test inserting a variable value into a db field. It's not inserting anything but cannot see why...can anyone spot the problem please?</p>

<p>Updated - here's all the php code:</p>

<pre><code>    //DB Conn

&lt;?php
    $link = mysql_connect('localhost', 'root', '');
    if (!$link) {
    die('Could not connect: ' . mysql_error());
}
    mysql_select_db('mydb',$link);
?&gt;

    ... then
    //Save.php

    &lt;?php

    include('dbconn.php');

    $result = mysql_query($query, $link);

        $mytestvalue = 'hello';

        $query="insert into mytable (id, name) values ('null','".$mytestvalue ."')";

    ?&gt;
</code></pre>

<p>Any ideas?</p>
