gpt4 book ai didi

php - Textarea 没有在 php 中显示。什么是错误?

转载 作者:太空宇宙 更新时间:2023-11-03 11:00:43 24 4
gpt4 key购买 nike

我有以下脚本来打印文本区域和一些文本。加载页面时,即使 while 条件为真,textarea 也不会出现。可能是什么问题?

$seq_query = "SELECT * FROM `mcsm`.`conseq_human` WHERE `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 from <a href='results1.php?category=".$conseq['FamilyName']."' target='_self'>".$conseq['FamilyName']."</a> family.</td></tr></table>";
}
}

最佳答案

试试这个

$seq_query = "SELECT * FROM `mcsm`.`conseq_human` WHERE `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 from <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>";
}

关于php - Textarea 没有在 php 中显示。什么是错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16118643/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com