when I submit data from the code below it says successfull but doesn’t record data to the database. what could be the problem? [closed]

The site is hosted on reakearn.co.ke
all other forms in the website work except for that one but it works on local server correctly.

The second form to fill user deatils after registration

I have tried downgrading the live server to php 7.4 but it doesn’t work