You are here: retrieve individual rows from mysql_fetch_array not using while loop « PHP Programming Language « IT news, forums, messages
retrieve individual rows from mysql_fetch_array not using while loop

Posted by monomaniac21 on 08/15/06 08:51

hi all

im querying a db for two rows which are always returned. how can i
reference each row and output its contents without using a while loop.
ive tried:

$row = mysql_fetch_array($result);
extract $row;
echo $var1[0]; //var 1 of row 0
echo $var1[1]; //var 1 of row 1


but this doesnt seem to be working?

kind regards

Marc

 

Navigation:

[Reply to this 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

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