Search

bbPress Showcase » bbpress bbPress Chat

two question about bb_press functions

RSS

Tags:


  1. agl666
    agl666

    member
    Joined: Aug '08
    Posts: 50

    offline

    thanks,
    foreach ($results as $result) {echo $result->meta_value;}
    hepled I have finally no question (by now)

    Posted 3 months ago #
  2. agl666
    agl666

    member
    Joined: Aug '08
    Posts: 50

    offline

    I have my last question (it's more about classes in php that about bbperss): how can I print

    $result->COUNT(*)

    ,where $result=$bbdb->get_results()? php interpretator return error about '*'.

    var_dump() is

    array(1) { [0]=> object(stdClass)#77 (1) { ["COUNT(*)"]=> string(1) "1" } }

    Posted 3 months ago #
  3. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 330

    offline

    You can rename variables inside of a mysql query to return a better index.

    ie.

    SELECT count(*) as total, meta_value FROM $bbdb->usermeta blah blah

    The variable that will come back is "total" instead of "count(*)"

    This is a demo of the bbPress Signatures plugin!
    If you use my plugins, please considering donating to help continue their development.
    Posted 3 months ago #
  4. agl666
    agl666

    member
    Joined: Aug '08
    Posts: 50

    offline

    thank you!

    Posted 3 months ago #

RSS feed for this topic

Post a reply to “two question about bb_press functions”

You must log in to post.

keep _ck_ coding >> donate $1 <<     Theme Switcher:
15 users online from  US  MX  IN  BE in the past 30 minutes. 8 bots 7 guests
418 views today 2798 yesterday 3411 ever. Most at once 19 today 24 yesterday 19 ever. Visited today: _ck_
724 posts in 106 topics over 19 months by 146 of 676 members. Latest: nicoosuna, Wish, insightdesigns