Hey, I was just wondering if any1 knew of an "easier" way 2 select table columns from a database?
Instead of doing each columne at a time like:
$query = "SELECT * FROM $table";
$result = mysql_db_query($dbname, $query);
while ($row = mysql_db_query($result))
{
$col1 = "$row[Col1]";
$col2 = "$row[Col2]";
}
etc, i cud have ALOT of column names 2 fetch. Is there a way it selects ALL columne names, and makes each columne name apart of the $row[]; array automatically?
Thanks for any help!