<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<?php
require_once('#######.php');
DBConnect();
session_start();
ob_start();
$today = getCurrentDate();
$id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
$SQL ="SELECT * FROM Entry WHERE EntryID= '$id'";
$result = mysql_query($SQL) or die(mysql_error());
while ($row = mysql_fetch_assoc($result))
{
$entryName = $row['EntryName'];
$entryDate = $row['EntryDate'];
$entryValue = $row['EntryValue'];
$entrySelect = $row['EntrySelect'];
$entryBalanceSheet = $row['EntryBalanceSheet'];
$entryID = $row['EntryID'];
?>
</head>
The blank screen only happens when I add the 'while' statement.
Ill start from the beggining, on the main page, theres a table with a list of entrys, next to each one theres a view button.
I've set it up so that when each seperate entry is clicked it displays the EntryID for that specific entry in the address ie
"www.######.co.uk/FixedAssetView.php?id=54&action=view"
So thats the address which comes up when i clicked the entry with EntryID 54.
Now im struggling with getting the rest of that entrys details which are stored in the database.
I just presumed it was that while statement because thats what causes the blank screen.