Create and query Wp

2

Is it possible to create a table in the Wp database to insert values and change them, or would it block me? I wanted to create a simple table just to validate, insert a number and if necessary to change that number.

    
asked by anonymous 18.08.2017 / 15:35

1 answer

0

You need to create a table inside the Wordpress database. You can use the "dbDelta" function to create the table structure and the api "wpdb" for CRUD (Create, read, update and delete occurrences).

  • Run SQL via dbDelta to create the table: link . Or, if it does, create the table via PHPMyAdmin itself.
  • Run SQL via $ wpdb to insert, read, update, or delete data from the created table: link
  • I think this should help.

        
    18.08.2017 / 16:22