was hoping someone could give me some help... I'm using PDO to get some data from a database, but every time the script runs it comes back with no errors but won't display the required data, I KNOW that the data I'm looking for is in there too.. any help would be appreciated, this is what I have at the moment, thanks.
$db = new PDO('sqlite:C:\\xampp\\htdocs\\Utils\\PDF_Utils\\PDF2Word\\details.sqlite');
echo "<table border=1>";
echo "<tr><td>FileID</td>
<td>File Name</td>
<td>Email From</td>
<td>CC</td> <td>Subject</td>
<td>File Size</td></tr>";
$contents = $db->prepare("SELECT * FROM details WHERE fileName =
'$yourFileName'");
$contents->execute();
foreach($contents as $row) {
echo "<tr><td>" . $row['FileID'] . "</td>";
echo "<td>" . $row['fileName'] . "</td>";
echo "<td>" . $row['emailFrom'] . "</td>";
echo "<td>" . $row['CC'] . "</td>";
echo "<td>" . $row['subject'] . "</td>";
echo "<td>" . $row['fileSize'] . "</td></tr>";
}
echo "</table>";