This is my query for selecting a column named 'course':
$query = "SELECT course from surprise WHERE diff_lvl = "'.$level.'" AND
tot_days = "'.$time_day'" AND tot_time = "'.$time_tot.'" "; \\(it is basically single quote inside a double quotes)
But I am getting error as:
syntax error, unexpected ''.$level.'' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp\htdocs\Test\sup_logic.php.
What should I do to fix it?
Is there any way I can write a query to get the value of course column?