Re: what is wrong with my php code?

From: Date: Mon, 03 May 2004 19:11:58 +0000
Subject: Re: what is wrong with my php code?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.general 
Request: Send a blank email to php-general+get-185223@lists.php.net to get a copy of this message
"John Nichel"wrote: > After this line... > > while($rsArchives = mysql_fetch_array($result)) > { > > Add this.... > > echo ( "<pre>" ); > print_r ( $rsArchives ); > echo ( "</pre>" ); > > And see if you're getting any data back. > > -- > John C. Nichel > KegWorks.com > 716.856.9675 > john@kegworks.com I am getting back the data....looks like this: Array ( [0] => Accounting [DEPARTMENT] => Accounting [1] => Bruce [FIRSTNAME] => Bruce [2] => fff [LASTNAME] => fff [3] => 222 [PHONE] => 222 [4] => 2 [ID] => 2 ) Array ( [0] => Accounting [DEPARTMENT] => Accounting [1] => Bethany [FIRSTNAME] => Bethany [2] => eee [LASTNAME] => eee [3] => 777 [PHONE] => 777 [4] => 3 [ID] => 3 ) Error : Array ( [0] => Accounting [DEPARTMENT] => Accounting [1] => bob [FIRSTNAME] => bob [2] => vvv [LASTNAME] => vvv [3] => 555 [PHONE] => 555 [4] => 1 [ID] => 1 ) Array ( [0] => Marketing [DEPARTMENT] => Marketing [1] => Jackie [FIRSTNAME] => Jackie [2] => ttt [LASTNAME] => ttt [3] => 888 [PHONE] => 888 [4] => 4 [ID] => 4 ) OBVIOUSLY the data is fake...just temporary while getting the code to work. Array ( [0] => Marketing [DEPARTMENT] => Marketing [1] => Melissa [FIRSTNAME] => Melissa [2] => yyy [LASTNAME] => yyy [3] => 111 [PHONE] => 111 [4] => 5 [ID] => 5 ) Array ( [0] => Marketing [DEPARTMENT] => Marketing [1] => Brian [FIRSTNAME] => Brian [2] => uuu [LASTNAME] => uuu [3] => 999 [PHONE] => 999 [4] => 6 [ID] => 6 )

« previous php.general (#185223) next »