The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 2 of 2

Thread: PHP/MySQL assoc array, pulling data

  1. #1

    PHP/MySQL assoc array, pulling data

    Hey guys,
    more php/mysql help

    Normally how I pull data from a single table is by querying the database by pulling all the data from a table where there's a specific ID or something, so it just seperates out what I need.

    However, this time I'm working with a table that it's impossible to pull data out that way. So if I did it the way I described above I'd have to make about 200 connections to the database, one for each row I'd change. So what I want to know is if there's a way to pull data from a table by fetching the associative array of all data under a table, and calling the data by identifying two columns of information to get the row I want.

    So that probably didn't make sense.

    Right now I pull data like this $myarray['column']

    But what I want to do is $myarray['column'] WHERE column1 = blah & column2 = blahagain.

    So does that all have to be done before querying the database, or is there a way to do it like I'm saying.

    Sorry that this is all over the place and confusing.

  2. #2
    I am not sure of what you mean (To tired here)... but might it be that you are looking for something like this:

    "SELECT * FROM blabla WHERE column1='blah' AND column2='blahagain'"

    // Paul

    -- Bed time now.. time: 1.40 =S

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
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012