Viewing File: D:\INETPUB\VHOSTS\officespacebangalore.com\httpdocs\admin\contacts.php
<?php
$title = 'Enquiries';
require_once __DIR__ . '/_header.php';
$rows = db()->query('SELECT cid,name,email,phone,subject,message FROM contact ORDER BY cid DESC')->fetchAll();
?>
<section class="admin-panel">
<div class="panel-head"><div><h2>Customer enquiries</h2><p class="muted">Stored in the existing <code>contact</code> table.</p></div></div>
<div class="table-wrap"><table>
<thead><tr><th>ID</th><th>Name</th><th>Contact</th><th>Subject</th><th>Message</th></tr></thead>
<tbody>
<?php foreach($rows as $c): ?>
<tr><td>#<?=e($c['cid'])?></td><td><strong><?=e($c['name'])?></strong></td><td><?=e($c['email'])?><br><?=e($c['phone'])?></td><td><?=e($c['subject'])?></td><td><?=nl2br(e($c['message']))?></td></tr>
<?php endforeach; ?>
<?php if(!$rows): ?><tr><td colspan="5" class="empty">No enquiries found.</td></tr><?php endif; ?>
</tbody></table></div>
</section>
<?php require __DIR__ . '/_footer.php'; ?>
Back to Directory
File Manager