Page 1 of 1

how to retrieve a colume from a table in Mysql-DB ?

Posted: Mon May 24, 2004 1:41 pm
by hillxy
hi,
how to directly fetch colume data into PHP array instead of using loop and mysql_fetch_row() function?
Does mysql_fetch_array works? any sample?

Thanks
hillxy

Posted: Mon May 24, 2004 1:44 pm
by Weirdan
loop and mysql_fetch_*.
No other ways. It's how relational dbs work.

What's wrong with loop and mysql_fetch_row() ?

Posted: Mon May 24, 2004 2:10 pm
by hillxy
no big problem for loop and fetch row, just want to check if any concise coding.

Thanks,
hillxy