[eluser]the_unforgiven[/eluser]
That works but am using a foreach statement and its getting the id but it';s showing all data from DB
Code:
<div id="events" class="scroll-pane">
<?php
$query = $this->db->query('SELECT * FROM mcd_events');
foreach ($query->result() as $row)
{
?>
<h3>Date:<?php echo date("F j, Y",strtotime($row->created_on)) ?></h3>
<p><br /><a >id ?>" id="linkid"><?php echo $row->title ?></a></p>
<?php } ?>
</div>
</div>
<!-- content left -->
<!-- content right -->
<div id="content-right">
<h2>Events/Rideouts</h2>
<div id="display">
<?php
$query = $this->db->query("SELECT * FROM mcd_events ");
foreach ($query->result() as $row)
{
?>
<p><?php echo $row->description ?></a></p>
<?php } ?>
</div>
<div class="clear"></div>
</div>