Re: Undefined variable problem

From: Date: Fri, 01 Aug 2003 15:25:45 +0000
Subject: Re: Undefined variable problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157958@lists.php.net to get a copy of this message
* Thus wrote Ryan A (ryan@jumac.com): > > Notice: Undefined variable: email1 in c:\phpdev\www\bwh\project\compare.php > on line 117 > [...] > > $m = 1; > while ($line = mysql_fetch_assoc($rs)) { //dumping into an array > foreach ($line as $field => $value) { > $tmp = $field.$m; > $$tmp.= $value; /* ********This is the error line 117******* */ Your concating a variable that doesnt exist. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#157958) next »