automatic updates – is it right choose to connect database in template page directly in WordPress site?

Question

i’m a little bit new in WordPress and for now working on WordPress site that some information will insert to database from forms … i design some page template and use mysqli_connect() to connect database and mysqli_query() to insert data to database .

the question i wonder is , am i do mistake ? is it possible that pages or piece of database erase after WordPress updates or totaly Could something bad happen? should change anything or not ?

i will thanks to anyone that help me. 🙂

0
hossein 2 years 2021-05-02T00:26:04-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse