Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Put the data from a MySQL column in an array
#1
I'm basically looking to get the data from a specific column, only in rows where a condition is true, and put it into an array.

For example (it's a message system):

To.....Message....Subject
user1..example.....example
user2..example2....example

In this example I would want to put the subjects of the messages to user1 in an array.

Any ideas?
Robert Picard
http://www.rpicard.net
Reply


Messages In This Thread
Put the data from a MySQL column in an array - by RPicard - 05-31-2010, 06:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What is array and the the use of it?can someone explain to me? Advertise4you 2 1,089 10-30-2011, 02:13 PM
Last Post: ★Cooldude★
  optimize mysql through a php script andrewjs18 7 3,345 10-05-2011, 06:31 PM
Last Post: John.
  Creating a simple PHP/MySQL login script ndee 16 10,419 05-14-2011, 02:18 AM
Last Post: モrainee
  Simple MySQL Tutorial Sly 4 1,293 05-14-2011, 01:53 AM
Last Post: Sly
  PHP Echo HTML From MySQL Value? iMr 7 3,770 03-19-2011, 09:41 AM
Last Post: ★Cooldude★

Forum Jump:


Users browsing this thread: 1 Guest(s)