[help] insert new topic in phpbb2 using mysql query

Discussion in 'PHP' started by mani123, Sep 1, 2008.

  1. #1
    i need help regarding phpbb2

    i have installed phpbb2 on my localhost

    i want to insert topic in database using mysql query ..

    i m doing it with this command

    
    INSERT INTO phpbb_posts (post_id, topic_id, forum_id, poster_id, post_time, poster_ip, post_username, enable_bbcode, enable_html, enable_smilies, enable_sig, post_edit_time, post_edit_count) 
    VALUES('1', '1', '1', '2', '972086460', '7F000001', NULL, '1', '0', '1', '1', NULL, '0');
    
    Code (markup):
    INSERT INTO phpbb_posts_text (post_id, bbcode_uid, post_subject, post_text) VALUES('2', '45489c1d79', 'topic 1', 'text 1');
    Code (markup):

    it is going in database ... but i cant see this topic on my forum..



    if i do this for replying to any topic.... it is working fine

    but problem is getting... whenever i post new topic using query ..

    can anybody plz help me ...
     
    mani123, Sep 1, 2008 IP
  2. mani123

    mani123 Peon

    Messages:
    200
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hehe... problem solved...

    i forgot about phpbb_topics table ...lolz.. :p

    how dumb i am ...

    topic closed
     
    mani123, Sep 1, 2008 IP