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
Post a Comment