Reply to mysql_fetch_array result type error

Your name:

Reply:


Posted by Karl Groves on 03/22/07 16:31

I'm trying to run mysql_fetch_array with a variable in place of the
optional result type constant, like so

mysql_fetch_array($result, $rtype) where, obviously, $rtype is one of the
three valid values for the result type. This throws an error:
"mysql_fetch_array() [function.mysql-fetch-array]: The result type should
be either MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH."

I'm not quite sure what the issue here is, other than that I'm replacing a
constant with a variable. I'm looking for a solution that will allow me to
(variably) be able to dictate this value.

TIA

--
Karl Groves

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация