Just to make this easier, let's say your variable names are $var1 and $var2. You got
PHP Code:
echo "<option value='".$var1['prodid']."'".$var2.">".$var1['prodname']."</option>";
Now, lets put in some variable values.
PHP Code:
$var1['prodid'] = 123; $var2 = 456; $var1['prodname'] = 789;
This will output
Code:
<option value='123'456>789</option>
That doesn't look right to me :P
Unless your $var2 holds an attribute, like
PHP Code:
$var2 = " class='someclass' name='somename'";
__________________
596f75206d65616e20796f752063616e2061637475616c6c79 207265616420746869733f
|