Re: 2d array help

From: Date: Mon, 21 Jan 2002 23:00:45 +0000
Subject: Re: 2d array help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81446@lists.php.net to get a copy of this message
I'm not sure exactly what you need help with, but if you're getting any errors, I'd recommend adding the resource identifier to your mysql_* functions (usually ($db = mysql_connect(), but YMMV). But I wonder if you were trying to do something else? Erik On Monday, January 21, 2002, at 05:51 PM, <kurth@usaexpress.net> wrote:
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); -- 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


« previous php.general (#81446) next »