Welcome Guest, Not a member yet? Register   Sign In
Getting a users name from id
#9

[eluser]egunay[/eluser]
@mattpointblank:

Thank you for your answer but unfortunately it is not the way that I was looking. I mean;

As I'm getting the timestamp in array and parsing it to the view doing it this way doesn't work.

For example, this is my controller:
Code:
$entries = $this->db->query("SELECT * FROM posts INNER JOIN users ON posts.uid=users.uid");
$content['posts'] = $entries->result_array();
$this->parser->parse("/content", $content);

And this is my view;
Code:
{posts}
<div id="post_title">{title}</div>

<div>{username} @ {created}</div> // -> "created" = my timestamp
<hr />
{/posts}

I hope I could have explained what I'm trying to tell Smile


Messages In This Thread
Getting a users name from id - by El Forum - 04-26-2010, 05:15 AM
Getting a users name from id - by El Forum - 04-27-2010, 12:15 AM
Getting a users name from id - by El Forum - 04-27-2010, 02:20 AM
Getting a users name from id - by El Forum - 04-28-2010, 01:02 PM
Getting a users name from id - by El Forum - 04-28-2010, 02:26 PM
Getting a users name from id - by El Forum - 04-28-2010, 02:42 PM
Getting a users name from id - by El Forum - 04-29-2010, 04:22 AM
Getting a users name from id - by El Forum - 04-29-2010, 04:50 AM
Getting a users name from id - by El Forum - 04-29-2010, 12:15 PM
Getting a users name from id - by El Forum - 04-29-2010, 12:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB