Skip to Content Skip to Menu

Counter for Rows

11 years 1 month ago #235472 by findyourlift
Counter for Rows was created by findyourlift
Is it possible to count an integer row?
For example I have a field called Seats and people put integers (1-5) in it.
And I want to count this so if the first person has 4 seats the second 5, that it counts 9 seats.

Thank you for your help.

Jonas

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 1 month ago #235512 by nant
Replied by nant on topic Counter for Rows

findyourlift wrote: Is it possible to count an integer row?
For example I have a field called Seats and people put integers (1-5) in it.
And I want to count this so if the first person has 4 seats the second 5, that it counts 9 seats.

Thank you for your help.

Jonas


You can certainly query the database directly (comprofiler table).

If you want to display this on a profile you would need the CB Query field plugin.

Please Log in or Create an account to join the conversation.

11 years 1 month ago #235530 by findyourlift
Replied by findyourlift on topic Counter for Rows
First thank you for answering.
And second, how can I query the database with comprofiler table, sorry I am new with CB.
And thank you for posting the plugin, but I first want to try it without the pluging, maybe it works.

Thank you for your help.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
11 years 1 month ago #235542 by nant
Replied by nant on topic Counter for Rows

findyourlift wrote: First thank you for answering.
And second, how can I query the database with comprofiler table, sorry I am new with CB.
And thank you for posting the plugin, but I first want to try it without the pluging, maybe it works.

Thank you for your help.


You need to use something like phpmyadmin and learn basic SQL statements.
(Google is your friend on both topics)

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum