--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
<select name="filter_music_dance" class="inputbox" onchange="this.form.submit()" style="width: 75px;">
<option value="-1">-Type-</option>
<?php
# build the select
# create an array of values
$music_dance_options = array();
$music_dance_options[] = JHtml::_('select.option', '0', "Music");
$music_dance_options[] = JHtml::_('select.option', '1', "Dance");
echo JHtml::_('select.options', $music_dance_options, 'value', 'text', $this->state->get('filter.music_dance'));?>
</select> // Filter calendar type - music_dance
$music_dance= $db->escape($this->getState('filter.music_dance'));
if ($music_dance != -1) {
$query->where('(a.gigcal_music_dance='.$music_dance.')');
}I didn't understand that from your post. That would work, however, only if I had used 'music' and 'dance' as values in the table instead of the 0 and 1 had already used (right?)... a choice that I can see may come back to haunt me later for various reasons.
Thanks for the clarification and for your efforts.
Thank you very much for that. I was thinking that I should do the conversion, but my SQL skills are very limited and it seemed like another big efforts. Using your code as a starting point \, I am pretty sure I can handle it.
Thank you again.
--
You received this message because you are subscribed to a topic in the Google Groups "Joomla! General Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joomla-dev-general/Rs9ekZ_JCN0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.