Quantcast
Channel: WordPress.org Forums
Viewing all articles
Browse latest Browse all 46187

NNR01 on "error using $wpdb in plugin page to access a custom table created in wp db"

$
0
0

Sorted, i.e. resolved.

error was in the iteration,...using foreach ($myrows as $row) { now instead.
i.e.

`global $wpdb;
$myrows = $wpdb->get_results("SELECT * FROM wp_sbbranches");

// loop through results of database query, displaying them in the table
foreach ($myrows as $row) {

echo "<tr>";

echo '<td style="border:none;">' .$row->BrId. '</td>';`


Viewing all articles
Browse latest Browse all 46187

Trending Articles