I want to do this query
$month = 'january'; //name of the column
$year = 2015;
$sql_query = 'SELECT "'.$month.'" FROM tbl_inpc WHERE year = "'.$year.'"';
and when I print the $sql_query
it shows:
SELECT "january" FROM tbl_inp WHERE year = "2015"
between " " double quotes and it isn't working and it should be something like this
SELECT january FROM tbl_inp WHERE year = 2015
maybe it could be something simple and stupid but my mind is blocked, some idea or am I doing something wrong? thanks.