ini_set("display_errors", 1);
    $connection = DB::getConnection(DB::host, DB::database, DB::user, DB::password);
    // gets the user id and searches for a matching id in the member table and displays the user's details
    $sTable = new seekerTable($connection);
    $jsTable = new jobSaveTable($connection);
    $jTable = new jobsTable($connection);
    $id = $_SESSION['id'];
    $jobSaves = $jsTable->showAllUnseen();
    $duplicate = false;
    $saveNum = $_GET['saveNum'];
    $count = $saveNum;
    $limit = $count + 10;
    $loopPass = 0;
    $previousSaveNum = $saveNum - 10;
    $jobs = $jTable->showAll();
    $seeker = $sTable->findById($id);
    $theme = $seeker->getTheme();
} catch (PODException $e) {
    $connection = null;
    exit("Connection Failed: " . $e->getMessage());
}
?>
        <div id="page-container<?php 
echo $theme;
?>
">
            <div id="header">
                <header class="container_16">
                    <div id="logo">
                        <div id="logo" class="grid_10">
                            <h1><a href="sControlPanel.php">appli.</a></h1>
Пример #2
0
<?php

session_start();
if (!$_SESSION['seeker']) {
    header("location: login.php");
}
require_once 'DB.php';
require_once 'seekerTable.php';
require_once 'seeker.php';
try {
    ini_set("display_errors", 1);
    $connection = DB::getConnection(DB::host, DB::database, DB::user, DB::password);
    //gets the user id and searches the member table for matching id
    $id = $_SESSION["id"];
    $table = new seekerTable($connection);
    $seeker = $table->findById($id);
    $theme = $seeker->getTheme();
    if (isset($_POST['submit'])) {
        $search = filter_var($_POST['search'], FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    }
} catch (PDOException $e) {
    $connection = null;
    exit("Connection failed: " . $e->getMessage());
}
?>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/960_16_col.css">