Reply to Re: Display Multiple Rows in MYSQL and PHP

Your name:

Reply:


Posted by Jon on 01/10/06 16:11

It's an associative array, and regardless of that, you can't echo or cout
anything from an array without choosing the index. If you wanted to echo the
values of the array, the algorithm would look something like this:

for(1 to last array index){
echo $array['fieldName']."<br>";
}

The loop is obviously just an algorithm and not actual code. You'll probably
want to pickup a book on PhP - this stuff is really important to understand
before trying to get toof ar in.
"ameshkin" <amir.meshkin@gmail.com> wrote in message
news:1136852770.233445.224530@g44g2000cwa.googlegroups.com...
> when i put in
>
> echo $array
>
> I get
> ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray
>
> One for each row. Is it because maybe the entry in the database is
> <song path="http://www.mytuneslive.com/test6/1.mp3" title="1.mp3"/>
>
> Does it not like the fact that the XML field in the database starts
> with a < and ends with >?
>

[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

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