well, here is the error message:
You have an error in your SQL syntax near 'FROM february WHERE <> 'sorry' ORDER BY last_name ASC' at line 1
with query:
mysql_select_db($database_rscontacts, $rscontacts);
$query_Recordset5 = "SELECT last_name, first_name, $miesiac FROM february WHERE $miesiac <> 'sorry' ORDER BY last_name ASC";
$Recordset5 = mysql_query($query_Recordset5, $rscontacts) or die(mysql_error());
$row_Recordset5 = mysql_fetch_assoc($Recordset5);
$totalRows_Recordset5 = mysql_num_rows($Recordset5);
but sometimes it works without changing anything, it just works and then i get the above error message again.
when i put '$miesiac' instead of $miesiac it just returns the value of $miesiac not the db column.