> I'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?
>
> TIA

You 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>

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

Reply via email to