- <?php
- if ( !defined( "IN_UCHOME" ) )
- {
- exit( "Access Denied" );
- }
- if($_GET['view'] == 'fri') {
- $actives = array('fri'=>' class="active"');
- }
- else{
- $actives = array('all'=>' class="active"');
- $sql = "select b.username ,a.uid,a.field_4,a.field_5,a.field_6,a.field_7 from " .tname('spacefield')." a ," .tname('space')." b where a.uid=b.uid and (a.field_4<>'' or a.field_6<>'' )";
- $query = $_SGLOBAL['db']->query($sql);
- //$info = $_SGLOBAL['db']->fetch_array( $query );
- $list = array();
- $count=0;
- while ($value = $_SGLOBAL['db']->fetch_array($query)) {
- $list[] = $value;
- $count++;
- }
- }
- include_once( template( "map/tem" ) );
- ?>
复制代码 这段代码,取出的值我在模板上调用,a.uid,a.field_4,a.field_5,a.field_6,a.field_7 都可以调到,就是username调不到,$value[field_5] 这个都可以,$value[username] 就不行了,到这就不执行了,
哪位高手看看啊。 |