Welcome Guest, Not a member yet? Register   Sign In
Blog Archives
#3

[eluser]Yash[/eluser]
Code:
$query = $this->db->query('select DISTINCT PostedDate from posts');
          foreach ($query->result() as $row)
            {    $input[]= date("F Y ",strtotime($row->PostedDate)); }
            
            
          

            $result = array_unique($input);
            var_dump($result);
Output is

array(3) { [0]=> string(11) "April 2003 " [1]=> string(14) "February 2003 " [3]=> string(10) "June 2008 " }

Now I want April 2003 contains a link like www.site.com/blog/2003-04

How to achieve that and Is this a right way to do..


Messages In This Thread
Blog Archives - by El Forum - 07-22-2008, 01:15 AM
Blog Archives - by El Forum - 07-22-2008, 01:43 AM
Blog Archives - by El Forum - 07-22-2008, 03:25 AM
Blog Archives - by El Forum - 07-22-2008, 03:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB