note 18661 added to function.mysql-result
| From: | arx777 at hotmail dot com | Date: | Wed, 30 Jan 2002 23:35:42 +0000 |
| Subject: | note 18661 added to function.mysql-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26051@lists.php.net to get a copy of this message | ||
So you would have something like this:
...
$rs = mysql_query("SELECT * from table1",$link);
if (mysql_num_rows($rs) > 0)
for ($i = 0; $i<mysql_num_fields($rs); $i++)
echo "Field [".mysql_field_name($rs, $i)."] - ".
mysql_result($rs,0,$i)." // ";
-ACM
--
http://www.php.net/manual/en/function.mysql-result.php
http://master.php.net/manage/user-notes.php?action=edit+18661
http://master.php.net/manage/user-notes.php?action=delete+18661
http://master.php.net/manage/user-notes.php?action=reject+18661