Padgoi Posted July 2, 2008 Share Posted July 2, 2008 This code is just returning a blank page. Any help would be greatly appreciated. $greg = $this->ipsclass->DB->simple_exec_query(array('select' => 'COUNT(*) as total', 'from' => 'members', 'where' => 'karma'>1 ) ); $gege = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $greg['total'], 'PER_PAGE' => 25, 'CUR_ST_VAL' => $this->start_val, 'L_SINGLE' => "", 'L_MULTI' => "Pages: ", 'BASE_URL' => $this->ipsclass->base_url."autocom=karma", ) ); $this->ipsclass->DB->simple_exec(); $this->output .= $this->ipsclass->compiled_templates['skin_ban']->main_page($gege); Link to comment https://forums.phpfreaks.com/topic/112950-little-help-with-this-code/ Share on other sites More sharing options...
DeanWhitehouse Posted July 2, 2008 Share Posted July 2, 2008 try adding error_reporting(E_ALL); to the top of the page Link to comment https://forums.phpfreaks.com/topic/112950-little-help-with-this-code/#findComment-580202 Share on other sites More sharing options...
Padgoi Posted July 2, 2008 Author Share Posted July 2, 2008 That didn't change anything, it's still returning nothing. Link to comment https://forums.phpfreaks.com/topic/112950-little-help-with-this-code/#findComment-580210 Share on other sites More sharing options...
DeanWhitehouse Posted July 2, 2008 Share Posted July 2, 2008 can you show all the code, or is that it? Link to comment https://forums.phpfreaks.com/topic/112950-little-help-with-this-code/#findComment-580212 Share on other sites More sharing options...
Padgoi Posted July 2, 2008 Author Share Posted July 2, 2008 <?php if ( ! defined( 'IN_IPB' ) ) { print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit(); } class component_public { var $ipsclass = ''; var $output = ""; var $page_title = ""; var $nav = array(); var $parser = ""; var $bans = array(); var $version = "1.0.0"; function run_component() { //----------------------------------------- // Require the HTML and language modules //----------------------------------------- $this->ipsclass->load_template('skin_ban'); $this->start_val = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0; $this->base_url = $this->ipsclass->base_url; //----------------------------------------- // What to do? //----------------------------------------- switch($this->ipsclass->input['CODE']) { default: $this->show_main(); break; } $this->output .= $this->ipsclass->compiled_templates['skin_ban']->finish(); //----------------------------------------- // If we have any HTML to print, do so... //----------------------------------------- $this->ipsclass->print->add_output("$this->output"); $this->ipsclass->print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, NAV => $this->nav ) ); } function show_main() { //-------------------------------------- // Get the list for this rating //-------------------------------------- $greg = $this->ipsclass->DB->simple_exec_query(array('select' => 'COUNT(*) as total', 'from' => 'members', 'where' => 'karma'>1 ) ); $gege = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $greg['total'], 'PER_PAGE' => 25, 'CUR_ST_VAL' => $this->start_val, 'L_SINGLE' => "", 'L_MULTI' => "Pages: ", 'BASE_URL' => $this->ipsclass->base_url."autocom=karma", ) ); $this->ipsclass->DB->simple_exec(); $this->output .= $this->ipsclass->compiled_templates['skin_ban']->main_page($gege); $this->page_title = $this->ipsclass->lang['title']; $this->nav = array( $this->ipsclass->lang['title'] ); } } ?> Link to comment https://forums.phpfreaks.com/topic/112950-little-help-with-this-code/#findComment-580218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.