Search

bbPress Showcase » bbPress Chat

two question about bb_press functions

RSS

Tags:


  1. agl666
    agl666

    senior member
    Joined: Aug '08
    Posts: 52

    offline

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

    Posted 3 years ago #
  2. agl666
    agl666

    senior member
    Joined: Aug '08
    Posts: 52

    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 years ago #
  3. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    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 years ago #
  4. agl666
    agl666

    senior member
    Joined: Aug '08
    Posts: 52

    offline

    thank you!

    Posted 3 years 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 $5 <<     Theme Switcher:
47 users online from in the past 30 minutes. 2 of them are on this page. 15 bots 32 guests
3,898 views today 8,638 yesterday 16,043 peak. Most at once 47 today 60 yesterday 131 peak. Visited today: qamilon, pandoracam, lvgalliera
2,288 posts in 394 topics over 66 months by 430 of 2,165 members. Latest: qwe12345100, Janvelden, watchessaleus