Beyond the answers of others fixing parts of your example, there is one more problem:
You (try) to grab the value from the table in your example. But when you use it, you refer to it as an array, while it is probably just a string (name).
A complete example with all corrected would look like this:
for ($k = 1; $k < $fieldscnt; $k++)
{
$sym = mysql_real_escape_string($symbol[$k]);
$selectsecurityname = mysql_query("SELECT `security name` FROM securityinfo WHERE symbol='$sym'") or die(mysql_error());
$securitynamearray = mysql_fetch_array($selectsecurityname);
$securityname = $securitynamearray['security name'];
echo "<td>$securityname</td>";
}
PS , .
PPS mysql_fetch_row mysql_fetch_array ( ) , :
$securitynamerow = mysql_fetch_row($selectsecurityname);
$securityname = $securitynamerow[0];