I think i have tried everything, my brain cells is destroyed.
$order_column = array('doctor_schedule_date', 'doctor_schedule_start_time', 'doctor_schedule_end_time', 'average_consulting_time');
$main_query = "
SELECT * FROM doctor_schedule_table
";
$search_query = '
WHERE doctor_id = "'.$_SESSION["admin_id"].'" AND
';
so it's working fine and thanks on that, but once i'm adding WHERE contact == "123" after AND in the end, it's just stopping working and starting to show me no matching data found i know it's a silly question, but i guess im too stupid to figure it out on myself. Help is optional