php - drop down menu in a form -


i'm trying add drop down menu in form. menu not showing , when view source gives following error.

php error encountered

severity: warning

message: mysql_query(): no connection made because target machine actively refused it.

filename: views/trainingneedsview.php

line number: 89

i'm using codeigniter , jquery.

my view code i'm trying show menu following.

       <div class="col userformmincolwidh">     <select name="training_id" size="3 multiple" style="align:bottom"> <?php      $gettype = mysql_query("select id, title training order id");     while($title = mysql_fetch_object($gettype)){         echo "<option value=\"{$id->id}\">{$title->title}</option>";     } ?> </select>   </div> </div>  

training_id field want put obtained value drop down menu. , id , title fields of training field want fecth training field. i'm new coding little appreciated

the error occurring because there no server listening @ host name , port entered.


Comments