why get unexpected error?
<pre><code>&lt;?php
$title = $_POST['title']; 
$date = $_POST['date'];
$time = $_POST['time'];
$channel = $_POST['channel'];
mysql_connect("localhost","root","");
mysql_select_db("imammuda");
$sql=mysql_query("insert into Program (ID, Title, Date, Time, Channel) values ('NULL', $title, $date, $time, $channel);
mysql_close();
?&gt;
</code></pre>

<p>this is my POST to insert data</p>

<pre><code>private void adddataintophp(String title, String date, String time, String channel){
    ArrayList&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();
    //http post
    try{
        nameValuePairs.add(new BasicNameValuePair("title", title));
        nameValuePairs.add(new BasicNameValuePair("date", date));
        nameValuePairs.add(new BasicNameValuePair("time", time));
        nameValuePairs.add(new BasicNameValuePair("channel", channel));
        HttpClient httpclient = new DefaultHttpClient();
        HttpPost httppost = new HttpPost("http://10.0.2.2/insertprogram.php");
        httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
        HttpResponse response = httpclient.execute(httppost);
        HttpEntity entity = response.getEntity();
        is = entity.getContent();
    }catch(Exception e){
        Log.e("log_tag", "Error in http connection"+e.toString());
    }
}
</code></pre>

<p>when run the php, it gave me </p>

<pre><code>Parse error: syntax error, unexpected $end in C:\wamp\www\InsertProgram.php on line 10
</code></pre>

<p>i don't know why it cannot end. </p>

<p>please help me in the POST there too, i think got some errors there that i did not found it.</p>
