Posted by ameshkin on 03/22/06 19:29
Hi,
I am having trouble pulling a date from a database using PHP at the <a
href="http://www.mytuneslive.com/ameshkin69/"> following page.</a>
Here is the code. As you can see, it is just making the date the
current time. The values in the database are UNIX timestamp, and the
DATE() function is used to convert from UNIX to readable date. Can
someone please help me?
<td width="55%" align="left" valign="top"><?php
$row_comment['timestamp'] = date("n d Y g:i A");
echo
$row_comment['timestamp']; ?> <br><br>
<?php echo $row_comment['comment']; ?> </td>
</tr>
</table>
I have also tried converting the database entry into a variable first,
then putting it in the repeating table with no luck....
[Back to original message]
|