WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
[resolved] [Plugin: Contact Form 7 to Database Extension] COUNT IS BROKEN (7 posts)

  1. thekjub9
    Member
    Posted 3 years ago #

    http://..../wp-admin/admin-ajax.php?action=cfdb-export&form=Registracia&search=kon%C5%A1trukter&enc=COUNT

    kon%C5%A1trukter : konštrukter

    in the contact form are 9 entries in only one cell in database is searched konštrukter but result was 9 and not 1

    http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/

  2. thekjub9
    Member
    Posted 3 years ago #

    http://....../wp-admin/admin-ajax.php?action=cfdb-export&form=Registracia&search=Kasman&enc=COUNT

    again : search : Kasman

    total entries 9 but only one field have the searched content but

    result 9 and not 1 !!!!!!!

  3. thekjub9
    Member
    Posted 3 years ago #

    http://..../wp-admin/admin-ajax.php?action=cfdb-export&form=Registracia&filter=exkurzia%3DRak%C3%BAsko%20%2F%20AT&enc=COUNT

    column exkurza

    formula exkurza = exkurzia / AT

    exkurzia / AT is a text imput !!!!!!!!!!!
    why ? because contact form 7 doesnt alow to preset database answer

    example
    cf7 : checkbox choice "one" "two" "three"
    >
    in database column choice and row 1 one row 2 two row 3 three
    and than
    count choice=three ????? answer should be 1 but try it yourself

    I recommend cf7 feature

    checkbox choice "one"=1 "two"=2 "three"=3
    >
    in databse column choice row1 1 row2 2 row3 3
    count chouce=3 the answer would be for 99% 1
    because its math and not text imput in the column cell

  4. thekjub9
    Member
    Posted 3 years ago #

    http://..../wp-admin/admin-ajax.php?action=cfdb-export&form=Registracia&enc=COUNT

    result 9

    http://..../wp-admin/admin-ajax.php?action=cfdb-export&form=Registracia&search=aaa&enc=COUNT

    result 9

    but should be 0 becouse search=aaa and aaa is not inside of my FORMULAR AS ANSWER MENTIONED !!!!!!!!

  5. Michael Simpson
    Member
    Plugin Author

    Posted 3 years ago #

    Count is broken. I will be pushes bug fix release soon.

    Problems I know about:
    1. Count gives the wrong answer (it is always giving a total)
    2. In some cases, the browser will show the page source instead of rendering the HTML when this shortcode is used (because the shortcode is returning text and that sometimes becomes the mime type for the whole page).

    I have fixed these problems but have not yet released an update.

    Are there any other problems with cfdb-count?

  6. thekjub9
    Member
    Posted 3 years ago #

    basicly no ... only answer by 6imputs in database I recieved by all possible combinations only answer 6 so .. :)

    I had problem with search function
    basicly I know the special answe and I use search to count the number of that answers in the database ... but that one didnt worked for me yet

    ;) thx for response

  7. Michael Simpson
    Member
    Plugin Author

    Posted 3 years ago #

    Should be fixed in latest release

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic