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 2 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:
28 users online from in the past 30 minutes. 17 bots 10 guests 1 members: mccawphoto
7,671 views today 8,665 yesterday 14,010 peak. Most at once 63 today 48 yesterday 131 peak. Visited today: Dickinsonjohn9, shairah27, xiaotian, _ck_, engin1984, Augustine01, MichaelGomez, mccawphoto, KitchenDip
2,240 posts in 380 topics over 63 months by 425 of 1,992 members. Latest: shairah27, Augustine01, MichaelGomez