• 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: Get Field Value from datebase based on other answe

Get Field Value from datebase based on other answe 7 years 2 months ago #37933

I'm trying to get a field value from the database based on the answer given in a previous dropdown. The user is choosing from a list of article titles.

The previous dropdown was called Project.

//<code>
$db = JFactory::getDbo();
$db->setQuery("SELECT id FROM #__content WHERE title = $_POST[0] ");
$ContentID = $db->loadResult();
return $ContentID;
//</code>

I'm getting syntax errors. Can anyone help? Am I on the right track?

Thanks,
Susanne
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!