|
Posted by Rik on 11/19/68 11:47
rich wrote:
> Still getting the same thing. There must be a bug. maybe it has
> something to do with it being part of a table?
hmmmz, atih with pf_fetch_assoc you're sure there is only the associative
array, so that would take care of doubles on that side (and uses less space,
is about the same speed, so always a good idea).
What is the exact reason you assign it to the variable $eachunit and
$eachid? The only thing I can think of is that somehow, there is a second
loop through the code.
PHP doesn't care you echo it in a select box...... What does yout HTML
output look like?
What about trying:
printf('option value="%s">%s</option>', $myunits['unitid'],
$myunits['unitname']);
Else, for debugging purposes:
$check = array();
while($myunits=pg_fetch_assoc($qunit)){
$check[] = $myunits;
}
print_r($check);
What does that tell you?
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|