I am not sure if its my code or the amount of jobs i have open but. Can anyone spot why my list of jobs appears lower than the other engineers from the image example i want all jobs to appear like “Martins” but other engineers jobs appear differently not a top like i expected.
Below is my HTML & PHP code + my CSS
[php]
<?php
include('connectionDB.php');
$sql = "SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended by]='James'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll(PDO::FETCH_ASSOC);
?>
";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo" ";
}
?>
|
<?php
include('connectionDB.php');
$sql = "SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended by]='Martin'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll(PDO::FETCH_ASSOC);
?>
";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo" ";
}
?>
|
<?php
include('connectionDB.php');
$sql = "SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended by]='Other'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll(PDO::FETCH_ASSOC);
?>
";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo" ";
}
?>
|
<?php
include('connectionDB.php');
$sql = "SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended by]='Nik'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll(PDO::FETCH_ASSOC);
?>
";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo" ";
}
?>
|
||||||||||||||||
<?php
$sql = "SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended by]='Matthew'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll(PDO::FETCH_ASSOC);
?>
";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo" ";
}
?>
|
<?php
$sql = "SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended by]='Paul'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll(PDO::FETCH_ASSOC);
?>
";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo" ";
}
?>
|
<?php
$sql = "SELECT * FROM [Support_DB].[dbo].['Job info$'] WHERE [Job Completed?]= 0 AND [Attended by]='Matt'";
$stmt = $conn->prepare($sql);
$stmt->execute();
$results=$stmt->fetchAll(PDO::FETCH_ASSOC);
?>
";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo"";
echo" ";
}
?>
|
<?php
$sql = “SELECT * FROM [Support_DB].[dbo].[‘Job info$’] WHERE [Job Completed?]= 0 AND [Attended by]=‘Emma’”;
<?php foreach ($results as $row) { echo “ ”; ";echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo"
echo" } ?> |
The CSS is the following:
[php]
background, body{
background-color: black;
}
#table-eng, p{
width: 650%;
font-size: 15pt;
color: #ffffff;
border-bottom-style: none;
}
#table-cust, tr{
font-size: 13pt;
color: #ffffff;
}
.td-fault{
font-size: 11pt;
color: #4CBB17;
border-bottom: 1px solid white;
}
[/php]
If anyone could offer any suggestions or assistance that would be great.
Thanks James