I'm sort of new to PHP and MySQL. I've been working with it though, I have ran into a problem. I'm trying to find a way to return multiple IDs from a query. Here is my Query:
$result = mysql_query("SELECT ID FROM Table1 Where Field1='<some text>'", $link);
This searches Table1 for all entries that contain <some text> in Field1. I want a list of ID's for each. Does $blah store all of the IDs? When I use:
$num_rows = mysql_num_rows($result);
I get 6, which is the correct number of instances that <some text> appears, but I want a list of IDs. So I can further manipulate the data.
Thanks