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条)

报告相同问题?

悬赏问题

  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 spring后端vue前端
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题