You know? You have to do something like:
Code:
$results = mysql_query("SELECT * FROM `table` WHERE `blah` = '$blah'") or die(mysql_error());
while ($row = mysql_fetch_array($results))
{
// Do What Ever Here...
}
Just replace table with your table name. You can add more "WHERE `blah` = '$blah" 's if you wanted, just seperate each "one" with a "AND", so if you wanted to have to you would do:
Code:
$results = mysql_query("SELECT * FROM `table` WHERE `blah` = '$blah' AND `why` = '$why'") or die(mysql_error());
Of you could have No "WHERE" 's in there, and pull every row out of the table:
Code:
$results = mysql_query("SELECT * FROM `table`") or die(mysql_error());
No matter what, you should get some results put into the variable $row, in an array for each row pulled. The While loop will go through that array, once for each row, and place the infomation pulled from the database in that row, and do what you want it to do with that row.
I hope that answered your question :-/