Try:
register_activation_hook ( __FILE__, array( new MemorialCandles(), 'dbInstall' ) );
Or define dbInstall as ´static´ and use that to set the table name instead the constructor, which I think is the best approach.
Related Posts:
- How to return number of found rows from SELECT query
- WordPress Theme variables scope
- Can i use php sql functions instead of $wpdb?
- $wpdb->get_results(…) returns empty array despite correct query
- Custom plugin: Trying to show saved data on frontend
- How to call a function only once (global variable scope)
- $wpdb->delete column values IN ARRAY()?
- wpdb::prepare was called incorrectly
- Create a global variable for use in all templates
- Custom query to get post names beginning with a digit
- How to display only first value of database column in WordPress
- Print out WordPress user ID – two sites with same code but different output
- WPDB: how to get the value of a field in a custom database table
- Can’t use get_results() in ajax query
- PHP syntax error when using wpdb update?
- JavaScript, best way to use data from the loop
- “The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working
- Export WordPress Table to CSV from page
- WordPress get pagination on wpdb get_results
- $wpdb->flush(); breaks the loop
- Show MySQL errors that occur when I excute $wpdb->insert()
- Any possible way to make $wpdb->get_results() return anything else than array?
- database interactions using OOP
- how to delete 30 day old data using PHP [closed]
- Echo a hierarchical list of post data from custom fields
- WSoD being caused by this piece of code
- How to prevent XSS alter custom global javascript object & methods in WordPress
- Querying wpdb using PHP
- Update results, Before deleting the related category [closed]
- How WordPress reacts to a lack of memory of the server [closed]
- wpdb php get_var query to get ID for URL image doesn’t work for ID over 999
- How to modify a global variable in a function and use it on another function?
- Database query works fine outside WordPress
- $wpdb->insert() does not Insert record in a table
- Help with a $wpdb MySQL Query
- Custom array from a query only write the last row of the query
- Querying Database with wpdb
- $wpdb returns duplicate posts
- Where is this function’s callback getting its arguments from?
- Wpdb->insert() doesn’t insert new row after the last one
- how to get serialized post meta
- Use $wpdb or other PHP script method to find/replace in WP database
- How to get specific attribute from DB
- Basic wpdb update question
- wpdb Cannot Update column in Database
- PHP -> SQL Query with Summing
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- How do I prepare strings for insertions as values into a MySQL table?
- Change MySQL PDO connection to a WPDB connection
- WPDB – Read and write value from / to database
- $wpdb->get_results breaking page?
- ‘global’ not working in wordpress?
- How to Generate a list of Most Commented post?
- Why won’t this wpdb get_results query return results?
- WPDB secure custom form
- Undefined variable: row?
- Call to a member function get_row() on a non-object, Unable to use global $wbdp inside a plugin
- select a single val though a table in wordpress
- populate select options from extra mysql table data
- WordPress get last inserted user id
- Add posts to custom table in database instead of wp_posts
- WordPress SQL Prepare
- global $product is empty string when passed into function
- Custom global variable not working in function
- Hide payment method based on user role AND minimum cart value
- What is the correct way to search 3 custom fields only in WordPress?
- Using wpdb to connect to a different database is not working
- Looping through custom data in a custom table to display all items in a post
- Displaying SQL query result from user input via wpdb
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- 403 Forbidden WordPress Database Results
- How to grab data from input and store it into custom table in database?
- Rewrite SQL query as a prepared statement and use in foreach loop
- How to return count of items found in SQL query
- Update user_email via php – WP 4.7
- Unable to pass variable to database
- global $post inside plugin query messes up every new post page in wp-admin
- Accessing external database: ERR_INCOMPLETE_CHUNKED_ENCODING
- Passed variable gets undefined variable error on insert on next page
- Run insert if no entry otherwise run update with ajax
- At what point during a typical request does the $wpdb object become available?
- Get null from POST
- key( $GLOBALS[‘wp_registered_sidebars’] ) is always showing the same value
- MySQL database migration to WordPress
- How do you get a reference to $wpdb in a PHP script
- Insert into db with foreach problem
- Suppress errors when using global function
- WordPress Query -> Ajax Query
- how to display tables via ajax
- Changing regular db connection to $wpdb
- Can’t send form data to wpdb when URL has query string
- inner-wrap div pushing custom table far down on page
- use wpdb object on other file
- $wpdb how to make a record lookup
- Using global variables
- Error resetting database index using ALTER TABLE in $wpdb->query
- How can one use variables in a template or template part without polluting the global scope?
- Warning: Undefined property: wpdb::$question_overview in C:\Wamp.NET\sites\proxyvragenmodule\wordpress\wp-includes\class-wpdb.php
- WordPress / PHP: Check if column has value and then check if value in array
- get_var not returning a value when the field contains an apostrophe