Data from POST in my Model? |
[eluser]Unknown[/eluser]
I have: Code: function get_by_city(){ My view Code: <?php echo form_open('controller_name/add'); ?> I will hear "'CityName'" insert data from form. How to do?
[eluser]solid9[/eluser]
Sorry My friend you are not following the MVC pattern. fetch the post in controller and then validate it then throw it in model. What is the use of using CodeIgniter if you are not following MVC?
[eluser]CroNiX[/eluser]
See the User Guide for Query Bindings. Your 2nd parameter to the query needs to be an array of the bindings in order.
[eluser]Unknown[/eluser]
Code: function city(){ Model country_model Code: function by_city(){ Now is OK ? |
Welcome Guest, Not a member yet? Register Sign In |