我正试图弄清楚为什么我的查询没有返回
我正在使用bluehost.com服务器托管一个在线SQL数据库。
SQL数据库已经设置好了,我正在使用下面的php来尝试创建
<?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();
?>
它当前没有返回项的值,即使该项在数据库中?
在php和sql服务器位于同一域的情况下,访问在线数据库有什么技巧吗?
如何从应用程序发送数据?您是否尝试过将php页面的输出回显到屏幕上?