我想弄清楚为什么我的查询没有得到回报,
我使用bluehost.com服务器托管在线SQL数据库。
SQL数据库已设置 - 我使用以下php尝试和que
<?php
mysql_connect("127.0.0.1","username","password");
mysql_select_db("richkbiz_items");
$q=mysql_query("SELECT * FROM items WHERE barcode = '".$_REQUEST['Barcode']."' ");
while($e=mysql_fetch_assoc($q))
$output[]=$e;
print(json_encode($output));
mysql_close();
?>
它当前没有返回item的值,即使该项目在数据库中?
访问在线数据库的任何提示,其中php和sql server在同一个域中?
答案 0 :(得分:0)
您是如何从应用程序发送数据的?你试图将php页面的输出回显到屏幕上吗?