To access a database and loop througth the results
Here try this
$result = mysql_query("SELECT * form table Where something = '$something'");
while($row = mysql_fetch_array($result)) {
print "$row[table_colume]";
}
hope this helps
darren wrote:
help !!! completely stuck
how can i read database queries into an array ??
whenever i try and loop through the records and array output ends up bieng ARRAY ??
i basically am calling 2 fields from a db one will be the index and the another the values
any help greatly received
thanks