|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-23 11:51 UTC] andrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
I use: $res = mysql_query("SELECT one_column FROM table") or die("blah"); $var = mysql_result($res,0); VERY often. I am requesting a pop-like function for a mysql result; so that: mysql> SELECT col_one, col_two FROM table; --------------------- | col_one | col_two | |---------|---------| | res one | res two | | res thr | res fou | |-------------------| <? $res = mysql_query("SELECT col_one, col_two FROM table") or die("blah"); while( $feild = mysql_pop($res) ) echo "$feild\n"; ?> would print: res one res two res thr res fou thanks much, Amiel