thanks,
foreach ($results as $result) {echo $result->meta_value;}
hepled
I have finally no question (by now)
bbPress ShowcasebbPress Showcase
taking bbPress (and WordPress) beyond your wildest dreams...
bbPress Showcase »
bbPress Chat
-
Posted 3 months ago #
-
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 # -
You can rename variables inside of a mysql query to return a better index.
ie.
SELECT count(*) as total, meta_value FROM $bbdb->usermetablah blahThe 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 # -
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.
15 users online from ![US [12] US](/images/flags/us.png)
![MX [1] MX](/images/flags/mx.png)
![IN [1] IN](/images/flags/in.png)
in the past 30 minutes. 8 bots 7 guests
![US [12] US](/images/flags/us.png)
![MX [1] MX](/images/flags/mx.png)
![IN [1] IN](/images/flags/in.png)
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