Adding information into the database
<pre><code>    private void AddGroupTasks(){
    title1 = tTitle.getText().toString();
    detail1 = tDetail.getText().toString();
    ArrayList&lt;NameValuePair&gt; b = new ArrayList&lt;NameValuePair&gt;();
    Tasks = new ArrayList&lt;String&gt;();

    try{
        HttpClient httpclient = new DefaultHttpClient();
        HttpPost httppost = new HttpPost ("http://203.209.111.88/AddGroupTasks.php");
        httppost.setEntity(new UrlEncodedFormEntity(b));
        HttpResponse response = httpclient.execute(httppost);
        HttpEntity entity = response.getEntity();
        is = entity.getContent();

        BufferedReader reader = new BufferedReader(new InputStreamReader(is,"iso-8859-1"),8);
        StringBuilder sb = new StringBuilder();
        String line=null;

        while ((line = reader.readLine()) != null) {
            sb.append(line + "\n");
        }
</code></pre>

<p>So, When I click add,the information is supposed to be added to database. However, it gives a null value. By the way, I'm writing a to-do list app. </p>

<pre><code>$Title = $_REQUEST['tTitle'];
$Detail = $_REQUEST['tDetail'];
$Group  = $_REQUEST['spin'];
$DueDate = $_REQUEST['tDueDate'];

$Title  = "'".$Title."'";  
$Detail = "'".$Detail."'";
$Group = "'".$Group."'";
$DueDate    = "'".$DueDate."'";
print $Title;

$database = "CloudList";

mysql_connect("localhost","root","1234");

mysql_select_db($database) or die("Unable to select database");

$q = "INSERT INTO message(group_name,message_title,message_details,message_due) VALUES($Group,$Title,$Detail,$DueDate)";
$result = mysql_query($q);
print $q;

mysql_close();
</code></pre>

<p>Here, This is my PHP Script.</p>
