Database access with wpdb

Querying a row:

$statement = $wpdb->get_row($sql, ARRAY_A);

Query multiple lines:

$statement = $wpdb->get_results($sql, ARRAY_A);
$Anzahl = $wpdb->num_rows;
foreach($statement as $row){....}