Notice: Undefined Index: Id In C:\Wamp\Www\Loaders.Php On Line 10
Notice: Undefined Index: Firstname In C:\Wamp\Www\Loaders.Php On Line 14
Notice: Undefined Index: Firstname In C:\Wamp\Www\Loaders.Php On Line 15
Notice: Undefined Index: Notes In C:\Wamp\Www\Loaders.Php On Line 16
<?php
session_start();
include 'core/connect.php';
$id = $_GET['id'];
$query = dbConnect()->prepare("SELECT `id`, `firstname`, `lastname`, `notes` FROM `loaders` WHERE id = :id");
$query->bindValue(':id', $id);
$query->bindValue(':firstname', $_POST['firstname']);
$query->bindValue(':lastname', $_POST['lastname']);
$query->bindValue(':notes', $_POST['notes']);
$query->execute();
foreach($query->fetchAll(PDO::FETCH_ASSOC) AS $rows){
echo $rows['notes'];
}
?>
<a href="profiles.php?=<?php echo $rows['id']?>"> <?php echo $rows['firstname'], ' ', $rows['lastname']?> <br /><br /> </a>