note 18661 deleted from function.mysql-result by aidan
| From: | aidan@php.net | Date: | Fri, 09 Sep 2005 08:41:27 +0000 |
| Subject: | note 18661 deleted from function.mysql-result by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-94948@lists.php.net to get a copy of this message | ||
Note Submitter: arx777 at hotmail dot com
----
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