Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Thanked 14 Times in 14 Posts

    Anyone familiar the Xtemplate engine?

    I'm experimenting with the Xtemplate template engine, and can't figure out how to convert a date/time field to show correctly.

    I have a query that will take each row, and make an array of each row. One the fields is a "time" field.

    PHP Code:
    $sql "SELECT * FROM game_info WHERE gid > 1 ";
    $result mysql_query($sql);
        while (
    $row mysql_fetch_assoc($result)) {
    $pdata[] = $row;
    $time date("m/d - H:i"$pdata['time']);
    And in my Xtemplate, I have the following, The gid and name both appear correctly, but I always get the time of "1199566614", and not the converted time

    Or as I read more. Is using a template engine a bad idea?
    Last edited by ptmuldoon; 01-18-2008 at 10:45 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts