php - Selection dropdown items not loading when I refresh the page -


so i'm using code population dropdown:

<select id="sel" name="char">   <?php     $s = $mysqli->query("select * `characters` `accountid`='" . $_session['id'] . "' order `id` asc") or die($mysqli->error);         while ($c = $s->fetch_array()) {             echo '<option value="' . $c['id'] . '">' . $c['name'] . '</option>';         }   ?> </select> 

this works initially, when refresh page options not show anymore. blank dropdown. wondering reason is? i've made sure session_start(); on page well. suggestions?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -