Menu Title

wpdb last_query, last_result, last_error

There are times that you wanted to print the exact query itself or query result right after it is executed. Use following wpdb class variables to troubleshoot. $wpdb->last_query This prints that last query that is executed, I mean the exact MySQL Query itself. $laundrycustomer = $wpdb->get_row("SELECT company_name, customer_name, phone, address FROM Continue Reading

Difference between wpdb get_row(), get_results(), get_var() and get_query()

WordPress defines a class called wpdb, which contains a set of functions used to interact with a database. Its primary purpose is to provide an interface with the WordPress database, but can be used to communicate with any other appropriate database. The $wpdb object can talk to any number of Continue Reading