Re: Editing a Database
| From: | Hans H. Anderson | Date: | Thu, 03 Aug 2000 22:15:39 +0000 |
| Subject: | Re: Editing a Database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10046@lists.php.net to get a copy of this message | ||
Dell,
In PHP3 I've never been able to nest []'s. I usually do this:
$this_team_id = $team_id[$j];
$name = $team[$this_team_id];
I don't know if this has changed in PHP4.
Hans
On Thu, 3 Aug 2000, Dell Coleman wrote:
> Hi
>
> I'm trying to do an expression like $name =
> $team[$team_id[$j]]; with PHP4
> I don't seem to get a value returned. Is nested subscripting
> illegal or
> did I miss something? team and team_id are created by taking
> apart
> an array returned from mysql i.e. $team[]=$row['name'] ,
> etc.
>
> Any help is appreciated.
>
>
> thanks
>
> Dell Coleman
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
Hans Anderson ~ me@hansanderson.com
PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL
(800)397-9116 / (406)549-6524 | Databases, Flash Multimedia,
http://www.hansanderson.com | Killer Audio Production,
http://www.goofiness.com | Minty Fresh Breath.