从创建一个MySQL表数组 [英] Creating an array from a MySQL table
本文介绍了从创建一个MySQL表数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图创建一个数组用于一个curl_multi_exec,但我似乎无法正确地创建数组。
I'm trying to create an array to use for a curl_multi_exec, but I can't seem to create the array properly.
下面是我的code:
$SQL = mysql_query("SELECT url FROM urls")
or die(mysql_error()); //Query the shell table
while($resultSet = mysql_fetch_array($SQL)) {
$urls[] = $resultSet;
}
echo $urls; //Test that the array works
但是当我运行该脚本,它是所有回声阵列
But when I run this script, all it does is echo "Array"
我不知道我做错了,我周围的谷歌查了一下,但不能弄明白。任何有识之士将AP preciated。
I have no idea what I'm doing wrong, I've checked around google a bit, but can't figure it out. Any insight would be appreciated.
推荐答案
的print_r($网址)
或的var_dump($网址)
回声
假定标量值。
这篇关于从创建一个MySQL表数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文