www.webdeveloper.com
Results 1 to 2 of 2

Thread: 2 MySQL queries - Merge results - using PHP

  1. #1
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046

    2 MySQL queries - Merge results - using PHP

    Hi all,

    I am using PHP to query a MySQL DB, this part is working fine for me. The problem is I have two queries which return the values in CSV (Comma Separated Value) format. I trim off the last comma so my return looks like this:

    First Query
    Code:
    value1, value2, value3, value4, etc...
    Second Query
    Code:
    value1, value2, value3, value4, etc...
    Now my question is:

    How do I get the two queries to merge every other value?

    example:

    Merge Results
    Code:
    value1, value1, value2, value2, etc...

  2. #2
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046
    Still need help

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles