dongleman4760 2014-05-04 13:15
浏览 38

上传数据后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

  • 写回答

2条回答 默认 最新

  • du548397507 2014-05-04 13:20
    关注
    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.
    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?