Categories
CMS Mastering Development Wordpress

Inserting choice in database table

So I have this code: <?php global $wpdb; // this adds the prefix which is set by the user upon instillation of wordpress $table_name = $wpdb->prefix . “dbname”; // this will get the data from your table $retrieve_data = $wpdb->get_results( “SELECT name FROM dbname” ); //print_r($retrieve_data); ?> <form action=”#” enctype=”multipart/form-data” method=”post”> <table> <?php foreach ($retrieve_data […]