borntowin_786 0 Newbie Poster

Helllo freinds,
I am a new babie to codeigniter.On admin side i m getting an error that is after login a black page get displayed.I am not getting what is exactly problem is.So I am pasting my code below. please if possible help me.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>: :  Concernergy  : :</title>
 	<link href="<?php echo base_url();?>css/header.css" media="all" rel="stylesheet" type="text/css"  />
	<link href="<?php echo base_url();?>css/home.css" media="all" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url();?>css/admin.css" media="all" rel="stylesheet" type="text/css" />
	<script src="<?php echo base_url();?>js/admin.js" language="javascript"	type="text/javascript"></script>
	</head>
<body>
<!-- Main page Start-->
        <div id="CEnergy_main" >
	<!--Header Start -->
		<div id="main_header" >		
			<div class="header_top"> 
					<div class="head_content" >			
			   <div id="concernergy_logo">&nbsp; </div>			   
			  		 
				  <!--Head Login Start -->
				 <div id="header_top_login"><?php if(isset($_SESSION['username'])) {?>
				 							<span class="red_btn">Welcome <?php echo $_SESSION['username'];?></span>|
				 							<span class="red_btn"><a href="<?php echo base_url();?>admin/logout">Logout</a></span>
				 							<?php
											 }
				 							else 
				 							{
				 							?><span class="red_btn">Welcome Guest</span>
				 							<?php
				 							}
				 							?></div>
				  <!--End Head Login  -->				  				  
				  
				</div>
		 
		</div>

		</div>	<!--end head -->
	<!--End Header -->       




 <div id="main_body" >		
			<div class="body_top"> 
					<div class="body_content" >		
						 <!-- Start Bottom Table-->
						 <div>
						 
							 <div id="bottom_content">

									<div id="">		

									<table border=0 width="100%" cellpadding=2 cellspacing=3>
									<?php
									if(isset($_SESSION['username']))
									{
									?>
										<tr>
											<td class="left_td" valign="top"><?php include("tpl/left_col.php");?></td>
											<td valign="top" bgcolor="#e5f2fe">
												<table>
													<tr>
														<td align="center"><b><?php echo $this->validation->msg;?></b><br></td>
													</tr>
													<tr>
														<td><?php require_once($template_contents.'.php'); ?></td>
													</tr>
												</table>					
											</td>
										</tr>
									<?php
									}
									else 
									{
										$this->load->view('admin/login');
									}	
									?>	
									</table>
							
									</div>							

							</div>	

						</div>
					</div>

						 <!--End Bottom Table--> 
			</div>
			</div>			 
				
				<div class="body_bottom">&nbsp;</div>
		
				</div>
  <!-- End Body -->

  		</div>
		 <!-- Page End-->
	</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.