• 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: running 1 database query then using later in form

running 1 database query then using later in form 13 years 2 months ago #16307

  • Joe028
  • Joe028's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I understand I can create a hidden field and set the value such that it gets the value from the database. What I would like to do though in order to reduce the number of database queries is to run 1 database query upon form loading. Save the results into an array and then use the items later on in the form. Problem I see is that if I use the php scripts section on form load the php variables I create are gone when I want to use them later in the form. For instance in a hidden field //<code>return $varFromDB; //</code> $varFromDB would have no value even though I assigned it one in the php scripts on form load section.

Is there a work around for this or a suggested way to carry information throughout the form, without running a new db query for each hidden field on the form?

Thanks so much.
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!