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
hillxy
Forum Newbie
Posts: 7 Joined: Wed Apr 07, 2004 2:28 pm
Post
by hillxy » Mon May 24, 2004 1:41 pm
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
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Mon May 24, 2004 1:44 pm
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 » Mon May 24, 2004 2:10 pm
no big problem for loop and fetch row, just want to check if any concise coding.
Thanks,
hillxy