database - Wordpress 3.9.2 and MYSQLI -


sorry if simple question cannot answer wp forums

i have since update server latest php version , running wordpress 3.9.2 because of updates wordpress uses mysqli instead of mysql , have custom data connections running of course not work now.

i have changed mysql msqli functions, of course not run correctly unless use database connection suffix

example

$results = $wpdb->query("select county counties"); while($row = $results->fetch_assoc()) { echo $row["county"]. "<br>'; }   $results->free(); 

though know there results, produces none , thinking have wrong connection name wpdb

does know db connection name in wordpress

many p

all sorted now

$results = $wpdb->get_results ("select county counties"); foreach ($results $row) { echo $row->county; } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -