CodeIgniter Forums
Select dependents - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Select dependents (/showthread.php?tid=10165)



Select dependents - El Forum - 07-21-2008

[eluser]minerva86[/eluser]
Hello I am new in Codeigniter I would like to know how I can make a select dependent on another, as the classic example of countries and cities, since these data are in a database, I hope your prompt response.


Select dependents - El Forum - 07-21-2008

[eluser]Colin Williams[/eluser]
Which part are you struggling with? What does your code look like now?


Select dependents - El Forum - 07-21-2008

[eluser]minerva86[/eluser]
I Dónt Know, i want make a combos dependentes , but i Dónt Know with CI


Select dependents - El Forum - 07-21-2008

[eluser]Colin Williams[/eluser]
Right. Got it. Combosos dependiantes. So, how does your code look so far? Have you tried anything out yet? Maybe sketched it out on a napkin or in a notebook? That's where all my code starts.


Select dependents - El Forum - 07-21-2008

[eluser]minerva86[/eluser]
Thanks for the answer, No I dónt Have any Code , I Dónt Have idea, because i´m New in CodeIgniter; i´M Learning CI


Select dependents - El Forum - 07-21-2008

[eluser]Colin Williams[/eluser]
Right.


Select dependents - El Forum - 07-21-2008

[eluser]Derek Allard[/eluser]
What Colin is (correctly) working around to is that the CI component of this is probably pretty small. A good bet would be to start with javascript, or even html, until you can build something similar to what you want, and then we can help you out with the db querying part of it using CI.

Welcome to CodeIgniter minerva86.


Select dependents - El Forum - 07-21-2008

[eluser]hvalente13[/eluser]
[quote author="minerva86" date="1216685437"]I Dónt Know, i want make a combos dependentes , but i Dónt Know with CI[/quote]

Olá minerva86,

Portuga ou brazuca?

In all the case you can find a huge amount of examples in dynamicdrive.com!

Try searching google by chained selects.