• 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 value from component

Get value from component 13 years 6 months ago #11917

  • gattaca
  • gattaca's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I created on textbox with name "box1" and default value "50".
In the second textbox with name "box2". In default value I wrote this code:

//<code>
$db =& JFactory::getDBO();
$db->setQuery( "SELECT title FROM jos_content WHERE catid =".$categoryid." AND id = 18" );
$result = $db->loadResult();
return $result;
//</code>

I want the variable $categoryid = 50 ( value from "box1" ) to run sql query properly.

How can i get the value "50" from "box1" and catid = 50?
Please give a scenario for that situation.
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!