似乎无法从securityinfo
场上传递任何东西。
for ($k = 1; $k < $fieldscnt; $k++)
{
$selectsecurityname = mysql_query("SELECT `security name` FROM securityinfo WHERE symbol = '$symbol[$k]'") or die(mysql_error());
$securityname = mysql_fetch_array($selectsecurityname);
$sym = $symbol[$k]
echo "<td>$securityname[$sym]</td>";
}
基本上,我想在字段中搜索匹配的行,然后从同一行symbol
的字段中返回值。securityinfo