Re: [PHP] Invalid Argument why?

2009-07-16 Thread Martin Scotta
foreach iterates over an array or a object (see Traversable ). If you pass anything different he complains wrote: > Miller, Terion wrote: > >> Why is this an invalid argument? >> >> foreach(($row['inType']) as $inType){ >> >> echo $inType,'';} >> >> I am trying to output results from a data base

Re: [PHP] Invalid Argument why? (RESOLVED)

2009-07-16 Thread Miller, Terion
Actually this ended up doing what I needed: $result = mysql_query($sql) or die(mysql_error()); $header = false; while

Re: [PHP] Invalid Argument why?

2009-07-16 Thread Kyle Smith
Miller, Terion wrote: Why is this an invalid argument? foreach(($row['inType']) as $inType){ echo $inType,'';} I am trying to output results from a data base that may have multiple results for the same name So trying to use an array and foreach that is the right track ...right? Loo

Re: [PHP] Invalid Argument why?

2009-07-16 Thread Ashley Sheridan
On Thu, 2009-07-16 at 15:41 -0400, Miller, Terion wrote: > Why is this an invalid argument? > > foreach(($row['inType']) as $inType){ > > echo $inType,'';} > > I am trying to output results from a data base that may have multiple > results for the same name > > So trying to use an array an