Reply to Re: Can't display column of multi-dimensional array

Your name:

Reply:


Posted by Geoff Berrow on 09/18/05 03:09

I noticed that Message-ID:
<1127000738.976833.221680@f14g2000cwb.googlegroups.com> from
news@celticbear.com contained the following:

>foreach ($a as $v1) {
> $fieldname = $v1;
$v1 is an array and so $fieldname is also an array
> foreach ($v1 as $v2) {
> $returned = valid_field($fieldname,$v2);
we don't know what your function does
> if ($returned != "true") {
> $error .= $returned;
> $errflag = "1";
> }
> }
>}

Try setting up a simple multidimensional array and echoing it to screen.
Then add your checking function when you understand what's going on.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

[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

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