2d array help
| From: | kurth at usaexpress dot net | Date: | Mon, 21 Jan 2002 22:51:56 +0000 |
| Subject: | 2d array help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-81445@lists.php.net to get a copy of this message | ||
arg- trying to get the data that I pull outta my db into a 2d assoc array...
any help?
~kurth
$result = mysql_query( "SELECT pkgid FROM plans");
while($row = mysql_fetch_assoc($result)){
$resultpkg = mysql_query( "SELECT * FROM plans WHERE
pkgid='$row[pkgid]'");
$package = mysql_fetch_assoc($resultpkg);
}
print_r($plan);