need help about anchor |
[eluser]doforumda[/eluser]
hi I need to use this kind of link "www.example.com/post/4" The problem is I am currently getting this kind of url but how can I deal with the id, i.e. 4 in this case, in my controller. here is my code Code: <?php foreach($rows as $r) : ?> in controller i am doing this Code: function contact($id) {
[eluser]appleboy[/eluser]
Hi, I think you must read Generating Query Results first. Please referrer the following example code: This function returns a single result row Code: $query = $this->db->query("YOUR QUERY");
[eluser]Taps[/eluser]
[quote author="doforumda" date="1311716346"]anyone who can help me?[/quote] example.com/blog/comments/id/ hosting/controller/function/id Controller Quote:<?php
[eluser]doforumda[/eluser]
I am trying that way but it shows this error Code: 404 Page Not Found
[eluser]appleboy[/eluser]
[quote author="doforumda" date="1311725246"]I am trying that way but it shows this error Code: 404 Page Not Found Please show your controller source code or show it via http://codepad.org |
Welcome Guest, Not a member yet? Register Sign In |