• 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: HELP ME PLEASE!! Urgent!

HELP ME PLEASE!! Urgent! 12 years 5 months ago #15609

I am using RS Forms 1.4.0 ver41. In the dropdown box - items code:
/ / <code>
$ db = & JFactory:: getDBO ();
$ db-> setQuery ("SELECT coupon, product FROM jos_coupon");
$ result = $ db-> loadObjectList ();

$ items ='';
foreach ($ result as $ r)
$ items .= $ r-> coupon. '|'. $ r-> product. "\ n";

return $ items;
/ / </ code>
If in the table records more 1272, then the form is not working and there is a bug
Undefined variable: items in ...../administrator/components/com_rsform/helpers/rsform.php(449) : eval()'d code on line 7
How to solve this problem?
The administrator has disabled public write access.

Re: HELP ME PLEASE!! Urgent! 12 years 4 months ago #15631

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Try this instead:
//<code>
$db = & JFactory:: getDBO ();
$db-> setQuery ("SELECT coupon, product FROM jos_coupon");
$result = $db->loadObjectList();
$items = '';
foreach($result as $res)
	$items .= $res->coupon."|".$res->product."\n";
return rtrim($items);
//</code>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!