echo block creation date
Permalink
Hello i have a custom block and i would like to show the creation date of the block.
i put at the db.xml
and to the view.php
but doesn't work, someone give me some help.
i put at the db.xml
<field name="bDateAdded" type="T"> <NOTNULL/> <DEFAULT value="0000-00-00 00:00:00"/> </field>
and to the view.php
<div><?php echo $bDateAdded; ?></div>
but doesn't work, someone give me some help.
thanks for your help Rony,
i just put to the view.php
this
and it's ok
i just put to the view.php
this
<?php $id = $bID; $date = mysql_query("SELECT bDateAdded FROM blocks WHERE bID = $id"); $first = mysql_fetch_array( $date ); echo $first[ 'bDateAdded' ]; ?>
and it's ok
Rony