Re: Display of fetched MySQL data?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux