I am getting aerror while concatenating query for SQL in PHP
$query = "INSERT INTO bookings (date, start, userId)
VALUES ('$booking_date','$booking_time','$_SESSION['userIdSession']');";
The single quotes ''
in $_SESSION['userIdSession']
are causing this problem.
What is the right way to concatenate this string without getting error?
(I am beginner in PHP, do not down vote me)