I'm currently using the following query to insert data into a table
$query = mysqli_query($connection, "SELECT * FROM booked_activities INNER JOIN activities ON booked_activities.activityID = activities.activityID WHERE booked_activities.customerID LIKE $_SESSION['customerID']");
I've been instructed to use prepare statements for the $_SESSION['customerID'].
Does this mean by just naming $_SESSION['customerID'] = $db_id? Or do I need to do something else to protect the data.