I am getting error 400 in mysql

You didn't make the above proposed changes in your script. Also after the changes in script make sure that you upload the script in public_html folder

and choose php version 7.4

for 000webhost see also