Search

bbPress Showcase » bbPress Chat

  1. raheel
    User has not uploaded an avatar

    new member
    Joined: Mar '09
    Posts: 1

    offline

    Hi Ck!
    Great to have found this site..

    BBPRESS is very attractive but lack of documentation makes life kinda difficult..and ofcourse, my amateurishness..

    Im coding a plugin, and I want to call an entire line in sql and display it.

    $data = array(
    "question" => "Whats ma name",
    "oa" => "oa",
    "ob" => "ob",
    "oc" => "oc",
    "answer" => "answer",
    "topic_id" => 1,
    "explanation" => "",
    );
    I could call each variable the same number of commands.. but i want to grab a line from table complete into $data with just one call.

    something like this:

    $data = $bbdb->get_row( $bbdb->prepare ("SELECT question FROM bb_data WHERE tid = %d", $tid ));

    but you can see that its wrong, and i dont know how do i get the entire line from bb_data into $data type above.

    any help is appreciated

    Posted 3 years ago #

RSS feed for this topic

Post a reply to “Query about handling BBpress Sql calls”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
24 users online from in the past 30 minutes. 16 bots 8 guests
7,474 views today 8,426 yesterday 16,043 peak. Most at once 50 today 62 yesterday 131 peak. Visited today: Amylawrence, guava, JeffreyCasivant, wigbuy123, gdfddfs, nandao, _ck_, summerfortun
2,288 posts in 394 topics over 66 months by 430 of 2,167 members. Latest: watchessaleus, wigbuy123, JeffreyCasivant