Answered You can hire a professional tutor to get the answer.
What are the technical reasons to why mysql_* functions like mysql_query(), mysql_connect() or mysql_real_escape_string() were removed completely in
What are the technical reasons to why mysql_* functions like mysql_query(), mysql_connect() or mysql_real_escape_string() were removed completely in PHP 7.0?