SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,921
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Using Result-set from Prepared Statement

    I have a query that includes GROUP_CONCAT, and I can't seem to get the results I want, so I am trying to break things up into two queries.

    Since I exclusively use Prepared Statements, how do I capture the results-set from a Prepared Statement so that I can turn around and run another Prepared Statement off of the results?

    Sincerely,


    Debbie

  2. #2
    SitePoint Guru
    Join Date
    Nov 2003
    Location
    Huntsville AL
    Posts
    692
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    More details please.

    It seems obvious that you would loop through the results of the first query and feed the results to the second query. But I'm guessing that you are asking something else?

    You do know that you need not use bind statements? That you can just pass an array of values to a prepared query?


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
  •