I'm trying to find a way to output whatever BLOB files are inserted into a silly database. In my code when I query the CV column I get all sorts of weird symbols. Can you guys please help me fix my code?
$crud->dataview($query);
}else{
$query = "SELECT id, from_unixtime(cheie_wp) as datetime, nume, prenume, email, telefon, oras, denumiri_job, cv FROM jobselection_data_old ORDER BY id DESC";
$records_per_page=10;
$newquery = $crud->paging($query,$records_per_page);
$crud->dataview($newquery);
public function dataview($query)
{
$stmt = $this->db->prepare($query);
$stmt->execute();
if($stmt->rowCount()>0)
{
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
$date_in = $row['datetime'];
$date_out = explode(' ', $date_in);
?>
<tr>
<td><?php echo $date_out[0]; ?></td>
<td><?php print($row['nume']); ?></td>
<td><?php print($row['prenume']); ?></td>
<td><?php print($row['email']); ?></td>
<td><?php print($row['telefon']); ?></td>
<td><?php print($row['oras']); ?></td>
<td><?php print($row['denumiri_job']); ?></td>
<td><?php print($row['cv']); ?></td>
<td align="center">
<a href="edit-data.php?edit_id=<?php print($row['user_id']); ?>"><i class="glyphicon glyphicon-edit"></i></a>
</td>
<td align="center">
<a href="delete.php?delete_id=<?php print($row['user_id']); ?>"><i class="glyphicon glyphicon-remove-circle"></i></a>
</td>
</tr>
<?php
}
}else{ ... }
}