Re: [PHP] 2d array help

2002-01-21 Thread Kurth Bemis
Yes I do... for an online billing system... Kurth Bemis Senior Network Admin/Owner: USAExpress.net Owner: Ozone Computer http://kurth.hardcrypto.com PGP Key Avail. - Uh!.Uh!.Uh!."I'm done with this."...Out the windo

Re: [PHP] 2d array help

2002-01-21 Thread Jim Lucas [php]
$result = mysql_query( "SELECT pkgid FROM plans"); while($row = mysql_fetch_assoc($result)) { $package = mysql_fetch_assoc(mysql_query( "SELECT * FROM plans WHERE pkgid='$row[pkgid]'")); } obviously this will have $package = array("key" => "value", ...); are you wanting to have the above be

Re: [PHP] 2d array help

2002-01-21 Thread Erik Price
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

Re: [PHP] 2D array from file

2001-09-26 Thread Brian White
I think this is not working because "\t" is a regular expression and explode only works on strings.. Actually, I have no idea and I feeling very confused right now but maybe try "split" and see how it goes. Brian At 13:37 26/09/2001 -0400, John Frenzel wrote: >I have created a 2D array, th

Re: [PHP] 2D array

2001-07-27 Thread AJDIN BRANDIC
> - Original Message - > From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> > To: "Wagner Tomy" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, July 27, 2001 2:34 PM > Subject: Re: [PHP] 2D array > > > > Wag, > > > >

Re: [PHP] 2D array

2001-07-27 Thread Wagner Tomy
EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001 2:34 PM Subject: Re: [PHP] 2D array > Wag, > > I do not wish to push whole of the row into an array. > Also I need the id of the parent array to be $myname; > > Ajdin > > On Fri, 27 Jul 2001, Wag

Re: [PHP] 2D array

2001-07-27 Thread AJDIN BRANDIC
Wag, I do not wish to push whole of the row into an array. Also I need the id of the parent array to be $myname; Ajdin On Fri, 27 Jul 2001, Wagner Tomy wrote: > $my2darray = Array(); > > while($row = mysql_fetch_row($result)) { > array_push($my2darray, $row); > } > > OR: > > for($i = 0; $

Re: [PHP] 2D array

2001-07-27 Thread Slavomir Slizik
or: $my2darray[] = $row; SSL On Fri, 27 Jul 2001, Wagner Tomy wrote: > $my2darray = Array(); > > while($row = mysql_fetch_row($result)) { > array_push($my2darray, $row); > } > > OR: > > for($i = 0; $i < mysql_num_rows($result); $i++) { > $row = mysql_fetch_row($result); > $my2darr

Re: [PHP] 2D array

2001-07-27 Thread Wagner Tomy
$my2darray = Array(); while($row = mysql_fetch_row($result)) { array_push($my2darray, $row); } OR: for($i = 0; $i < mysql_num_rows($result); $i++) { $row = mysql_fetch_row($result); $my2darray[$i] = $row; } Wagner Tomy Editus S.A. - Original Message - From: "AJDIN BRANDIC" <[EMAIL

Re: [PHP] 2d array?

2001-01-10 Thread Toby Butzon
<[EMAIL PROTECTED]> To: "Kurth Bemis" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 8:46 PM Subject: Re: [PHP] 2d array? > I'll give it a whirl ... > > $array_of_page_titles = array( > 'aboutus.php' => '

Re: [PHP] 2d array?

2001-01-10 Thread Joe Stump
I'll give it a whirl ... $array_of_page_titles = array( 'aboutus.php' => 'All about our company', 'index.php' => 'Welcome to www.server.com!', 'foo.php' => 'I\'m a worthless script!' ); Then ... $file should be the name of the file - there is a