I need it so that when i type in domain.com/user/1 the one gets pulled in as a variable and then can be used to get the correct database values. Right now the variable is set manually with domain.com/user . How do I setup the segments and then make get() that number. I’m working only with username url’s as numbers so no, names just domain.com/user/1 , domain.com/user/487 ect
Share
Take a look at URI Routing: http://codeigniter.com/user_guide/general/routing.html
Something like:
in your config/routes.php file will probably do what you’d like.