Closed Thread
Results 1 to 3 of 3

Thread: PHP Yahoo Answers Clone Script Problem

  1. #1
    thekooliest is offline Newbie
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    PHP Yahoo Answers Clone Script Problem

    The site I am working on for myself is answersforpilots[dot]com. I don't have any graphics, I am just trying to get the main frame working. Right now I also just have a place to enter questions and view them. I took some of this code from a free script, and am a PHP noob, so I am not sure of how to fix my problem, but I know what it wrong. When you are on the home screen and try to view a Question by clicking on it, for example: "Question #1"...And it will bring you to a page that says "Question:" and "Answer:". The code for that section is:
    Code:
    <strong>Title: </strong><?php echo $rsQuestion[0]->title;?><br />
    <strong>Question: </strong><?php echo $rsQuestion[0]->question_text;?>
    The [0] denotes the most recent question, so even if I am viewing "Question #1", it will show "Question #2". Understand?
    I can change that to [1] and get the information from the second most recent question asked, "Question #1"...but I've tried a lot and have not been able to show the information for the current question. If you could please help me with this, and if you need any more code you can look on my site, or just ask.
    Thanks,
    Sam.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: PHP Yahoo Answers Clone Script Problem

    The [] ([0], [1], etc) denotes an array. You have an array of objects, it looks like. Without seeing more code, I cannot help you but you need someway of identifying/connecting the current question to the current question in the array.

  4. #3
    thekooliest is offline Newbie
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Re: PHP Yahoo Answers Clone Script Problem

    Ya I got it, thanks.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Seeking script Chatroulette clone Open Source and Free
    By pierrehs in forum PHP Development
    Replies: 3
    Last Post: 08-08-2011, 12:42 PM
  2. need 2 answers for two cool things
    By Paulo_Jorge in forum Visual Basic Programming
    Replies: 6
    Last Post: 04-05-2011, 08:54 AM
  3. Groupon Clone Script with Added Features
    By henna in forum Services for Buy/Sell/Trade
    Replies: 0
    Last Post: 03-21-2011, 01:46 AM
  4. Problem with simple Space Invaders clone
    By eafkuor in forum Java Help
    Replies: 6
    Last Post: 10-30-2010, 04:53 AM
  5. Need some answers
    By debug in forum C and C++
    Replies: 4
    Last Post: 08-30-2007, 09:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts