Hello, I was hoping to get some help with this thing that got me stalled...
I am trying to get ALL the values contained in a column of a database (meaning I am trying to get all the values contained in a specific column of all the rows present in a table).
There is a mysql_fetch_row but there doesn't seem to be a mysql_fetch_col, so to speak.
My table rows have IDs but they are non-sequential (the IDs are pretty random).
How can I do this?
Thanks
To give you a little bit more background in case you need it to understand my question:
my table has a column called 'id' in which I store the id of an entry and one called 'addl_ids' in which I store the ids (separated by comma) of all the other entries that this one entry relates to (its a billing system with invoices tied to separate projects).
I want to grab all these additional ids from all the 'addl_ids' fields of all the rows of all the 'ids' so I can do a check on them. Hope this helps.
Thanks