• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Filter with textbox in auto-populate mysql table i

Filter with textbox in auto-populate mysql table i 10 years 1 week ago #31102

  • mariano
  • mariano's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Excuse my English.

I have two fields:

field1 (textbox, name circum, numeric)

field2 (checkbox, name measure) --- tab items ->

//<code>

$items = array();

$filter = $_POST ;
$db = JFactory::getDBO();
$db->setQuery("Select valor, medida from medidas where valor = $filter ");

$results = $db->loadObjectList();
foreach ($results as $result) {
$value = $result->valor;
$label = $result->medida;
$items[] = $value.'|'.$label;
}
$items = implode("\n", $items);
return $items;
//</code>

But not work. :huh:

What have I done wrong ?? :blush:
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!