Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title> Photography Site </title>
        <link rel="stylesheet" type="text/css" href="CSS/Mainbody.css" />
        <link rel="stylesheet" type="text/css" href="CSS/800px.css" media="screen and (max-width: 800px)" />
        <link rel="stylesheet" type="text/css" href="CSS/Menu.css" />
        <link rel="stylesheet" type="text/css" href="CSS/SideBar.css" />
    </head>
    <body>
        <div id="Container">    
        <?php include 'menu.php';?>
        <?php include 'display_photos.php';?>
          <div id="MainBody">
             <?php
                //display all photos in database
                $rows = $_SESSION['rows'];
                for ($x = 0; $x < $rows; $x++) {
                    $name = $_SESSION['array'][$x][1];
                    $username = $_SESSION['array'][$x][8];
                    $category = $_SESSION['array'][$x][9];
                    $description = $_SESSION['array'][$x][2];
                    $likes = $_SESSION['array'][$x][7];
                    $path = $_SESSION['array'][$x][3];
                    $res_path = $_SESSION['array'][$x][4];
             ?>
             <table style="width:50%" height = "350" align="center">
                <tr>
                    <th rowspan="6" style="vertical-align:bottom;"><img src="https://upload.wikimedia.org/wikipedia/commons/3/38/Tampa_FL_Sulphur_Springs_Tower_tall_pano01.jpg" alt=""></img></th>
                    <td>Name: <?php echo $name; ?></td>
                </tr>
                <tr><td>User: <?php echo $username; ?></td></tr>
                <tr><td>Category: <?php echo $category; ?></td></tr>
                <tr><td>Description: <?php echo $description; ?></td></tr>
                <tr><td>path: <?php echo $path; ?></td></tr>
                <tr><td>Likes: <?php echo $likes; ?></td></tr>
            </table>
             <?php } ?> 
          </div>
        </div>
    </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers