Forums

Search values from selection list

JulioCastro 01 Sep, 2008
There is a colum called "instituicao" in my table. This colum has several rows with 35 diferent values.

I want to select one of theese 35 values from a selection list, and show all the entries of my table with this value.

Is it possible to make it with chronoconnectivity?

ChronoForms and ChronoConnectivity are wonderful components!!! I will write a review soon!
Max_admin 02 Sep, 2008
Hi Julio,

Thanks! you will need to have the select list created statically or dynamically at some form, make it a simple Chronoforms one and then a submit button and make the action URL a ChronoConnectivity page and configure the WHERE statement to get the value posted from the select and all should be ok!

let me know if you have troubles!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
JulioCastro 02 Sep, 2008
Thanks!!! It appears to be very simple.

I'm quite newbie...
How do I configure the WHERE statement to get the value posted from the select?
What should I write in WHERE statement?
Max_admin 02 Sep, 2008
Hi Julio,

it should be something like this :

WHERE id="<?php echo JRequest::getVar('select_field_name'); ?>"


I assumed that id is the primary key for the table!😉

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
JulioCastro 03 Sep, 2008
After solving the bug!

It worked perfectly well!

I'll never be tired to say: "what wonderful components!!"
Excenlent suport!
Max_admin 03 Sep, 2008
Thanks Julio!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.