get value from query and put on controller |
[eluser]ranggadablues[/eluser]
Hallo.. first sorry for my english. I just create a contact form, I want for email to is dynamic that I can change for the email on my admin panel setup,the question is can I get value from query and put on controller here the script Code: function contact() here for my model Code: function getEmail() Code: $this->email->to(/*here the query value*/);
[eluser]InsiteFX[/eluser]
Code: function contact()
[eluser]ranggadablues[/eluser]
thank you for the reply, but it show some error : Quote:A PHP Error was encountered Quote:A PHP Error was encountered Quote:A PHP Error was encounteredso, which part is wrong? thank you
[eluser]InsiteFX[/eluser]
Because that is what you are returning change it to return and array. Code: function getEmail()
[eluser]ranggadablues[/eluser]
[quote author="InsiteFX" date="1342424493"]Because that is what you are returning change it to return and array. Code: function getEmail() wooww..!!! it works!!! thank you..but, how to change this topic is solved?
[eluser]ranggadablues[/eluser]
[quote author="InsiteFX" date="1342430647"]Edit it and add [SOLVED] to Title. [/quote] I've got Error Message :long:
[eluser]ranggadablues[/eluser]
[quote author="InsiteFX" date="1342433425"]What error message? [/quote] Quote:Error Message
[eluser]InsiteFX[/eluser]
You should be able to now, they do have a limit of 10 posts. |
Welcome Guest, Not a member yet? Register Sign In |