Validation And Data from Database |
[eluser]BaRzO[/eluser]
Hi all, There is an example for validation in user guide but if i want to include some variables from the database i am having problem !!! how do you resolve this? For example i want to add user groups from the database Controller Code: <?php myform.php view file Code: <html>
[eluser]Scriptor[/eluser]
Have you read about using models or fetching data from the database? Read the page on 'Models' in the User Guide first, followed by the Database pages. Also, you will have to pass the data to the view: Code: $view_data = array( $group then becomes a variable in your view.
[eluser]BaRzO[/eluser]
Thanks Scriptor, i am little confused thanks for your help |
Welcome Guest, Not a member yet? Register Sign In |