html - php combo list values from function -


i wanted category_list function value inside combo box it's not working. gurus out there me? thanks! working

<tr>     <td><?php echo $xx['evt_category'];?>:</td>     <td>         <select name="cat" id="cat">             <?php if ($_session['uid']!=1) {category_list($cat);} ?>             </select>      </td>  </tr> 

this not working

echo "<td><select id=\"cat\" name=\"cat\"></td>\n"; echo "<option value='".category_list($cat)."</option>\n"; echo "</select>\n"; 

if first example working, should working:

echo '<td><select id="cat" name="cat">'; echo category_list($cat); echo '</select></td>'; 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -