【发布时间】:2013-08-19 06:39:21
【问题描述】:
如果 Unit = Child,我想搜索 AdvInfo 表并存储主键。
$result = mysqli_query($conn, "SELECT * FROM AdvInfo WHERE Unit = Child");
while ($row = mysqli_fetch_array($result, SQLSRV_FETCH_ASSOC))
{
$childhbc = array_merge($childhbc, $row[0]);
echo $childhbc[0];
}
【问题讨论】:
-
你能回应你的选择查询吗?
-
没有。回显 $childhbc 也不会返回任何内容
标签: php mysql arrays loops mysqli