Re: Editing a Database

From: Date: Thu, 03 Aug 2000 23:10:59 +0000
Subject: Re: Editing a Database
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-10043@lists.php.net to get a copy of this message
> 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. It's valid. I bet if you turned on the full error reporting you'd see a warning about that index not existing. Just at a guess, did you really mean $team[$team_id[$j]]? From what you have above, I think you might want something like $team[$row_in_results_we_care_about]['ColumnName'] for use with an array generated by $teamp[] = mysql_fetch_array($result);

« previous php.general (#10043) next »