When selecting cells from the database, several similar cells are selected (in our case: _billing_site , _billing_hostdb , _billing_dnname , _billing_dbuser and _billing_dbpass ). If you select _billing_site , then 2 arrays are output. But I would like to leave one, for example, separating them by _billing_period which only one has _billing_site , the second does not have such a cell.
$resp = $dbh->query("SELECT * FROM wp_postmeta"); foreach($resp as $respp){ $rowxn = $respp["post_id"]; $respmeta = $dbh->query("SELECT * FROM wp_postmeta WHERE post_id IN ('$rowxn') AND meta_value IN ('month')"); foreach($respmeta as $respmetapart){ echo $respmetapart["meta_value"]."<br>"; } } It turns out not quite what I would like. You need to output _billing_site , _billing_hostdb , _billing_dnname , _billing_dbuser and _billing_dbpass only one post_id . How to implement it?
