[/text]
Code: Select all
<?php
//address error handling
ini_set ('display_errors', 1);
error_reporting (E_ALL & ~E_NOTICE);
//authenticate user
require('auth.php');
//define title
define('TITLE' , 'Members');
require ('header.html'); //need the header
?>
<div id="main" style="background-color: #FFFFFF; height:71%; width:101%; border:0px none none; margin:auto; "> <!-- -->
<div id="main_left" style="float:left; height:100%; width:20%; border:0px none none;"> <!--opens main left-->
<div id="main_left_top" style="float:left; position:relative;bottom:5px;right:5px; height:31.25%; width:100%; background-color: #FFFFFF; border:1px solid #c0c0c0; margin:1px;"> <!--opens main left top-->
</div> <!-- closes main left top-->
<div id="main_left_center" style="float:left; background-color: #FFFFFF; height:33%; width:100%; border-color:#a0a0a0;border-style:outset;border-width:1px; margin:auto; "> <!--opens the white content area-->
</div> <!-- closes main left center-->
<div id="main_left_bottom" style="float:left; background-color: #FFFFFF; height:33%; width:100%; border-color:#a0a0a0;border-style:outset;border-width:1px; margin:auto; "> <!--opens the white content area-->
</div> <!-- closes main left bottom-->
</div> <!-- closes main left-->
<div id="main_center" class="content_text" style="float:left; height:100%; width:58%; background-color: #FFFFFF; border:1px solid #c0c0c0;"> <!--opens main center-->
<div id="image_box" style="float:left; background-color: #c0c0c0; height:150px; width:140px; border-color:#a0a0a0;border-style:outset;border-width:1px; margin:auto; ">
<?php
//address error handling
ini_set ('display_errors', 1);
error_reporting (E_ALL & ~E_NOTICE);
$query = "SELECT* FROM images WHERE member_id ='{$_SESSION['id']}' AND cartegoty 'main' ";
$result = mysql_query($query);
$result_data = mysql_fetch_array($result);
header("Content-type: image/jpeg") ;
echo $result_data['image'];
?>
</div>
<a href="upload_image_page.php">click here to uplaod a picture</a>
<h1>Welcome <?php echo ucfirst($_SESSION['firstname']);?></h1>
<a href="member_profile.php">My Profile</a> | <a href="logout.php">Logout</a>
<p>This is a password protected area only accessible to members. </p>
<a href="blog_entries.php">Add to Hahap Tok Library</a>
</div> <!-- closes main center-->
<div id="main_right" style="float:left; background-color: #FFFFFF; height:100%; width:20%; border-color:#a0a0a0;border-style:outset;border-width:1px; margin:auto; "> <!--opens the white content area-->
<div id="main_right_top" style="float:left; background-color: #FFFFFF; height:33%; width:100%; border-color:#a0a0a0;border-style:outset;border-width:1px; margin:auto; "> <!--opens the white content area-->
</div> <!-- closes main left top-->
<div id="main_right_center" style="float:left; background-color: #FFFFFF; height:33%; width:100%; border-color:#a0a0a0;border-style:outset;border-width:1px; margin:auto; "> <!--opens the white content area-->
</div> <!-- closes main left center-->
<div id="main_right_bottom" style="float:left; background-color: #FFFFFF; height:34%; width:100%; border-color:#a0a0a0;border-style:outset;border-width:1px; margin:auto; "> <!--opens the white content area-->
</div> <!-- closes main left bottom-->
</div> <!-- closes main right-->
</div> <!-- closes main-->
<?php require('footer.html'); ?>