【发布时间】:2009-06-07 17:55:31
【问题描述】:
我目前正在尝试从表中提取数据,并且正在使用这个:
$online = mysqli_fetch_field(mysqli_query($db,
"SELECT `online` FROM `tbl_system` WHERE `property` = 'extranet'"));
但是,它不能作为回显 $online 给出“数组”。
这是来自 $online 的 var_dump
object(stdClass)#3 (11) {
["name"]=> string(6) "online"
["orgname"]=> string(6) "online"
["table"]=> string(10) "tbl_system"
["orgtable"]=> string(10) "tbl_system"
["def"]=> string(0) ""
["max_length"]=> int(1)
["length"]=> int(11)
["charsetnr"]=> int(63)
["flags"]=> int(36865)
["type"]=> int(3)
["decimals"]=> int(0) }
【问题讨论】: