Hi,
After asking for help on the list Skate gave me the following code as an
example:
**************
$n = 0;
$result = mysql_query( "SELECT id, title, text, date FROM news ORDER BY date
DESC" );
while ($rows = mysql_fetch_array($result)) {
  if( $rows == "" ){  continue;  }
  extract( $rows );   ///extract our result into variables named after our
fields
  $content[id][$n] = $id;
  $content[title][$n] = $title;
  $content[text][$n] = $text;
  $content[date][$n] = $date;
  $n++; //increment our number for next time...
 }
**************
My question is: is there anyway I can use a "select * from...." to do the
same thing and then dump as usual to
$content[id][$n] = $id; $content[title][$n] = $title; instead of a "select
id, title, text, date" because in reality I don't have just these 4 fields
but 43 fields in one table that have to be taken. "Select *..." seems a much
easier way to get it....

Am a newbie at associative arrays so kindly excuse.

Any suggestions/comments welcome or even links...I don't mind reading for
the next 2 hours or so to get this working.

Thanks,
-Ryan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to