From:             [EMAIL PROTECTED]
Operating system: OpenBSD 2.8
PHP version:      4.0.4
PHP Bug Type:     MySQL related
Bug description:  extract() does not overwrite old values in a while loop with the 
EXTR_OVERWRITE

$sql = "select * from organization order by
regionalrequirement,organizationname";
$result = mysql_query($sql);


while ($row=mysql_fetch_array($result))
{


// $organizationnameinchinese="";
// if this line was not included .. the value 
// $organizationnameinchinese would not get the new value
extract ($row,EXTR_OVERWRITE);


echo "The school listed are


<A href=vieworganization.php?orgid=$id>$organizationname
</a>

$organizationnameinchinese<BR><BR>";
}


-- 
Edit Bug report at: http://bugs.php.net/?id=9539&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to