Re: Display of fetched MySQL data?
| From: | W. D. | Date: | Fri, 26 Mar 2004 05:50:43 +0000 |
| Subject: | Re: Display of fetched MySQL data? | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33652@lists.php.net to get a copy of this message | ||
Thanks! mysql_fetch_assoc did the trick.
At 07:08 3/25/2004, Ryszard Hapka wrote:
>not only foreach ;)
>
>$r = mysql_query("select * from table");
>while($t = mysql_fetch_assoc($r)) { // or while ($t =
>mysql_fetch_array($r)) <-- you will see difrends
> foreach($t as $key => $value) {
> echo "[".$key."] ".$value ."<br />";
> }
> echo "<hr />";
Start Here to Find It Fast! -> http://www.US-Webmasters.com/best-start-page/