PHP代码 如何查询多组数值。说的不专业别骂

来源:百度知道 编辑:UC知道 时间:2024/06/07 23:58:16
if($configersos['deduct_name']==$result['username']){//判断是否被屏蔽.
showmessage('对不起,你已被管理员限制发言!','index.php',5);
exit;
}
如何能实现:
$configersos['deduct_name'] =1,2,3 呢

问个很菜的问题。!

具体是这个意思。! 希望能达到 那意思!QQ:82723000
恩。数组。拆开查询不会。能帮忙吗?
$configersos['deduct_name'] = array(ghman,exchange);
if( in_array( $result['username'] , $configersos['deduct_name'] ) ){//判断是否被屏蔽.
showmessage('对不起,你已被管理员限制发言!','index.php',5);
exit;
}

解决部分。
$configersos['deduct_name']是我查询的数据库值

我是希望:

$configersos['deduct_name'] = array($configersos['deduct_name']); 被放在括号里

前面的$configersos['deduct_name']能用什么取代吗?

郁闷 读出的效果成了这样:
$deduct_name = array('1,2,3'); //怎么无法按1或者2或者3读取呢

有解决办法吗
$configersos['deduct_name']='1,2,3';
$deduct_name = array($configersos['deduct_name']);
有办法把读出的效果变成:
这样就无法达到想要的效果了。 有人能帮忙解决吗?
$deduct_name = array(1,2,3);希望能成这个意思!

无法修改了。郁闷 最新疑问!

$configersos['deduct_name'] =1,2,3 呢 ??
什么意思?要数组??
PHPQQ群:4915800

$configersos['deduct_name'] = array(1,2,3);

if( in_array( $result['username'] , $configersos['deduct_name'] ) ){//判断是否被屏蔽.
showmessage('对不起,你已被管理员限制发言!','index.php',5);
exit;
}