## database connection [closed]

Question
I want to create an wordpress website (Question paper genrator) in which there will be a button called genrate paper after clicking it a question paper should be genrated and question should be taken from database. In database i would ...
0
1 hour 0 Answers 1 views

## Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder

Question
//Get Services and save to database first. for($i = 0;$i < count($_POST["wc_service_id"]);$i++) { $wc_service_id =$_POST["wc_service_id"][$i];$wc_service_name ...
0
1 hour 0 Answers 1 views

## Form doesnt save to database

Question
It is my first form trying on wordpress.I changed some names such as "name","e-mail" etc. to "name1" , "email1" etc.Because without these changing, submit button refers to 404 page. There is no any registration on database when I check it ...
0
1 hour 0 Answers 1 views

## How to execute mulitple statement SQL queries using $wpdb->query? Question I call$wpdb->query() on a query like INSERT INTO wp_ctt_timetables (name, homework, tod, class, dow, lesson) VALUES ('', '', '', 3, 0, 0); INSERT INTO wp_ctt_timetables (name, homework, tod, class, dow, lesson) VALUES ('', '', '', 3, 0, 1); INSERT INTO wp_ctt_timetables (name, ...
0
13 hours 0 Answers 3 views

## Database to page routing API?

Question
Lets say I have in my database a table for Universities - and for each entry in the database, the primary key would be the name of the University, i.e Duke. If I created a template for all the university ...
0
1 day 0 Answers 7 views

## Refresh page after update_post_meta

Question
I have created a input field on a front-page where the value of the database is on the same page as the input-field. If a value is passed to the database I have to reload the page for it to ...
0
2 days 0 Answers 19 views

## Store GravityForm data in phpmyadmin (mysql)

Question
I'm currently developing a small portal on Wordpress for a client where users have to submit forms (created with Gravity Forms). I'd like to be able to store the data from these forms, upon submission, onto a custom database that ...
0
2 days 0 Answers 13 views

## Better ads plugin has 500.000 entries in wp_postmeta

Question
My wp_postmeta table is huge, around 1.2 million entries, about half of those are caused by bs entries (_bs_via_rel_2, _bs_review_verdict, _bs_source_url_2, _bs_source_url_3... etc). From what little I could see 99% of these entries are empty. Also while I do have ...
0
3 days 0 Answers 15 views

## How to split data and insert in different columns using WP DataTables [closed]

Question
I've just asked this question in StackOverflow (https://stackoverflow.com/questions/60888909/how-to-split-data-and-insert-in-different-columns-using-wp-datatables) but I think it might be more suitable here. Im building a wordpress website that uses a form (using GravityForm plug in) and inserts into a table (WP DataTables plugin). The form ...
0
4 days 0 Answers 28 views

## Inserting choice in database table

Question
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="#" ...
0
5 days 0 Answers 33 views