PHP - 回声“数组”错误 [英] PHP - Echo 'Array' error

查看:99
本文介绍了PHP - 回声“数组”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有含糊不清抱歉,但我有一个PHP脚本,从数据库中提取数据并显示,但是,而不是将其输出输出数组他们是结果的次数数据库的内容。

sorry for being vague but I have a PHP script which extracts data from a database and displays it, however instead of outputting the contents of the database it outputs 'Array' the number of times their are results.

(无法获得重新工作,脚本上传这里),脚本的输出也是<一个HREF =htt​​p://jackcarlin.com/dayz/backend/qTop.php相对=nofollow>这里)。
感谢: - )

(Couldn't get the to work again, script uploaded here), the script's output is also here.) Thanks :-)

推荐答案

$行是一个数组中包含了所有记录的字段。使用

$row is an array, in contains all record fields. Use

echo $rows['unique_id'];

代替。

不使用mysql扩展

这篇关于PHP - 回声“数组”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆