html - Textarea is not showing in php. What is error? -


i have following script print textarea , text that. when page loaded, textarea not appear when while condition true. problem?

$seq_query = "select * `mcsm`.`conseq_human` `mcsm_id`='$mcsm_id';"; $seq_result = mysql_query($seq_query);  print '<table border="0" align="left" style="margin-left:207px"><tr><th align="left">conserved sequence</th></tr>';  if(!$conseq = mysql_fetch_array($seq_result)) {     print "<tr><td><p>not sufficient information yet.</p></td></tr></table>"; } else {     while($conseq = mysql_fetch_array($seq_result))     {         print "<tr><td><textarea name='seq_textarea' cols='100' rows=''>".$conseq['consequence']."</textarea></td></tr>         <tr><td>based on msa of ".$conseq['msa_no_of_seq']." sequences <a href='results1.php?category=".$conseq['familyname']."' target='_self'>".$conseq['familyname']."</a> family.</td></tr></table>";     } } 

try this

$seq_query = "select * `mcsm`.`conseq_human` `mcsm_id`='$mcsm_id';"; $seq_result = mysql_query($seq_query); print '<table border="0" align="left" style="margin-left:207px"><tr><th align="left">conserved sequence</th></tr>'; if(mysql_num_rows($seq_result)>0) {     while($conseq = mysql_fetch_array($seq_result))    {     print "<tr><td><textarea name='seq_textarea' cols='100'        rows=''>".$conseq['consequence']."</textarea></td></tr>     <tr><td>based on msa of ".$conseq['msa_no_of_seq']." sequences <a href='results1.php?category=".$conseq['familyname']."' target='_self'>".$conseq['familyname']."</a> family.</td></tr></table>";    } } else{ print "<tr><td><p>not sufficient information yet.</p></td></tr></table>"; } 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -