From: Amiel dot Martin at wwu dot edu Operating system: Linux PHP version: 4.2.3 PHP Bug Type: Feature/Change Request Bug description: alias for mysql_result($res, 0)
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 -- Edit bug report at http://bugs.php.net/?id=22469&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22469&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22469&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22469&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22469&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22469&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22469&r=support Expected behavior: http://bugs.php.net/fix.php?id=22469&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22469&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22469&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22469&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22469&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22469&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22469&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22469&r=gnused