• 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: sequential counter prefix

sequential counter prefix 8 years 3 months ago #36243

  • liam3
  • liam3's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
i am using the provided code to show the submission number . what i want to do is prefix the sequence with 17 IF i cant reset the counter.
 //<code>
$db=JFactory::getDBO();
$db->setQuery("SELECT COUNT(`SubmissionId`) cnt FROM #__rsform_submissions");
$db->query();
$result=$db->loadResult();
return intval($result)+1;
//</code>

so it reads 17xxx as the submission number
Last Edit: 8 years 3 months ago by liam3.
The administrator has disabled public write access.

sequential counter prefix 8 years 3 months ago #36283

  • liam3
  • liam3's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Any ideas?
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!