I hope somebody can help. I am trying to pull info from my db using form variable and it works fine except for the column which is the variable it doesn't show anything. here is the code.
$colname_Recordset6 = "1";
if (isset($HTTP_SESSION_VARS['february'])) {
$colname_Recordset6 = (get_magic_quotes_gpc()) ? $HTTP_SESSION_VARS['february'] : addslashes($HTTP_SESSION_VARS['february']);
}
mysql_select_db($database_rscontacts, $rscontacts);
$query_Recordset6 = sprintf("SELECT last_name, first_name, username, $february FROM february WHERE $february <> 'sorry' ORDER BY last_name ASC", $colname_Recordset6,$colname_Recordset6);
$Recordset6 = mysql_query($query_Recordset6, $rscontacts) or die(mysql_error());
$row_Recordset6 = mysql_fetch_assoc($Recordset6);
$totalRows_Recordset6 = mysql_num_rows($Recordset6);
last_name, first_name and username show just as they should no problem but i have no value for $february. what am i doing wrong?