dongyinzhi4689 2015-03-08 20:11
浏览 164
已采纳

在URL App Inventor中使用大于(> =)

I'm using this php code as part of App Inventor

$Techid = mysqli_real_escape_string($dbc, $_GET['Techid']);
$diffs = mysqli_real_escape_string($dbc, $_GET['diff']);
$values = mysqli_query($dbc, "SELECT * FROM CPETrack WHERE (Techid= '$Techid') AND (diff = '$diffs')");

The web url i need to parse over is: http://domainhere.com/custserv.php?id=1000&diff>=15

The techid is defined in app inventor itself and so is the diff.

I can do this in the mysql DB SELECT * FROM CPETrack WHERE id=1000 AND diff>=15; and it will return all items from the relevent id column and diff column greater than or equal to 15.

I'm unable to convert this to php thou to do the same job. How would I go about doing this?

Please bear in mind the actual diff value will be set within app inventor and I'm using set url1 to block in app inventor and join text block to create the web url and the php to give the result.

  • 写回答

2条回答 默认 最新

  • dragon2025 2015-03-08 22:43
    关注

    what about using >= in your php script like this

    $values = mysqli_query($dbc, "... AND (diff >= '$diffs')");
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog