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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hillxy
Forum Newbie
Posts: 7
Joined: Wed Apr 07, 2004 2:28 pm

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

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

loop and mysql_fetch_*.
No other ways. It's how relational dbs work.

What's wrong with loop and mysql_fetch_row() ?
hillxy
Forum Newbie
Posts: 7
Joined: Wed Apr 07, 2004 2:28 pm

Post by hillxy »

no big problem for loop and fetch row, just want to check if any concise coding.

Thanks,
hillxy
Post Reply