上传数据后Mysql中的空白字段

I was uploading data from my android application to a PHP file then inserting it to Mysql database, the problem i am having that i buy a new hosting plan and when i configured everything in the new hosting, i try to upload data from the application it shows only blank fields in the table, i am sure that there's no problem in the PHP or the android code, cause it was working fine and great with the old hosting.. i tried to change the encoding but same issue.

Here's the PHP file:

<?php 
$con = mysql_connect("HOST","USER","PASS");
if (!$con)
    {
    die('Could not Connect:'. mysql_error());
    }
mysql_select_db("TABLE",$con);


mysql_query ("INSERT INTO table (rep_desc,dateT) VALUES ('".$_REQUEST['report_Desc']."','".$_REQUEST['Date_Time']."')");

mysql_close($con);
?>

Thanks in advance

  1. If there is any auto_increment column in table. Better check if its auto_increment flag not got uncheck.
  2. Please also check length of database fields and data that you actually trying to insert.
  3. Name of all request variables, columns, tables should be in proper case if it is a UNIX system.

get all the tables by something like this query ...

$sql = "SHOW TABLES FROM $dbname";
$result = mysql_query($sql);


if (!$result) {
    echo "DB Error, could not list tables
";
    echo 'MySQL Error: ' . mysql_error();
    exit;
}

while ($row = mysql_fetch_row($result)) {
    echo "Table: {$row[0]}
";
}