1
vote
Cannot get wpdb data (Error in a simple fuction)
should be a comment but can't.
your error just says that in <?php get_coin_price(BTC); ?> BTC is considered a variable but is not defined and compiler assume the variable as a string, it doesn'...
1
vote
Accepted
Cannot get wpdb data (Error in a simple fuction)
What about changing BTC to a string
<?php get_coin_price('BTC'); ?>
1
vote
Accepted
Wordpress Custom SQL Table with UserID Filter for results
The evolution of this question makes it difficult to succinctly answer, but in brief summary:
Using $wpdb->prepare() to construct arbitrary SQL queries to execute against the database helps to ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
mysql × 1538database × 381
php × 353
wpdb × 205
sql × 138
query × 130
plugins × 127
wp-query × 119
plugin-development × 95
posts × 75
phpmyadmin × 69
post-meta × 53
customization × 45
custom-post-types × 42
woocommerce-offtopic × 42
users × 42
functions × 40
custom-field × 38
multisite × 36
ajax × 35
performance × 34
user-meta × 32
errors × 31
meta-query × 27
forms × 26