Re: 'echo' and 'html_decode'
| From: | Daniel Kullik | Date: | Wed, 21 Jul 2004 17:11:34 +0000 |
| Subject: | Re: 'echo' and 'html_decode' | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191348@lists.php.net to get a copy of this message | ||
Matthew Sims wrote:
Hello. Matt, appearently you're confusing mysql_result() with mysql_query() (-: Daniel -- WWE e-commerce IT GmbH Eiffestrasse 462, D-20537 Hamburg Tel.: +49-40-2530659-0, Fax: +49-40-2530659-50I'm trying to use html_decode with the echo function but failed so far. <? echo mysql_result($product, 0,1) ?> What would be the correct syntax? TIAYou should read up on how to use mysql_result properly. Read through the user comments for tips. http://us2.php.net/manual/en/function.mysql-result.php For example: $query = "SELECT * from tablename where index='var'"; $result = mysql_result($query); while ($row = mysql_fetch_array($result)) { //do stuff with $row } --Matthew Sims --<http://killermookie.org>