Welcome Guest, Not a member yet? Register   Sign In
only pull one row from db to display problem
#4

[eluser]dadamssg[/eluser]
well now ive learned that its not that. Its that i can't get the uri segment. For whatever reason i just can not assign the 3rd uri to anything. the uri im trying to capture is the number like below

mysite.com/events/867

im trying to use to get it but won't work
Code:
$id = $this->uri->segment(2);
        if (isset($id) && is_numeric($id))
        {
              $page = $id;
            }
            else
            {
              $page = 867;
            }

and i know i have an event with an id of 867 so thats why i used that number. When i go to mysite.com/events/ it pulls up that event like its suppose to but if i try to add a third segment with another event id, say 868(which is also in the db), it pulls up a 404


Messages In This Thread
only pull one row from db to display problem - by El Forum - 01-10-2010, 01:56 PM
only pull one row from db to display problem - by El Forum - 01-10-2010, 01:58 PM
only pull one row from db to display problem - by El Forum - 01-10-2010, 02:35 PM
only pull one row from db to display problem - by El Forum - 01-10-2010, 02:45 PM
only pull one row from db to display problem - by El Forum - 01-10-2010, 02:47 PM
only pull one row from db to display problem - by El Forum - 01-10-2010, 02:57 PM
only pull one row from db to display problem - by El Forum - 01-10-2010, 03:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB