Exemplo n.º 1
0
<?php

session_start();
require_once 'Logic/ItemLogic.php';
$itemLogic = new ItemLogic();
$itemsArr = array();
$id = $_SESSION['user'];
$itemsArr = $itemLogic->getPostedItems($id);
?>

<p>
------My Posts------
</p>
<ul class="itemList" >
                
                <?php 
//echo '<pre>';
//print_r($itemsArr);
//echo '</pre>';
if (!$itemsArr) {
    echo "No posts from you.";
} else {
    foreach ($itemsArr as $item) {
        echo '<li><div class="item" >';
        echo '<br />
							<span id="pic">
								<img src="upload/' . $item->picpath . '" alt="Not Available" name="profilepic" 
								width="200" height="200" id="profilepic" style="background-color: #999999" />
							</span>';
        echo '<br />
							<div class="iteminfo">