Why am i getting this error? Object of class mysqli_result could not be converted to string on line 19 What is the error?
<?php
//Offer Wall
// Put your CPA Networks Virtual Currency Widget after the End of this first PHP
//Segment
include "mysqli_config.php";
?>
<table>
<tr>
<th>Offer Name</th>
<th>Description</th>
<th>Payout</th>
</tr>
</table>
<?php
$offername= "SELECT offername, description, payout, offerid FROM offers";
$exec= $mysqli->query($offername);
if (mysqli_num_rows($exec) == 0){
echo "No Offers Yet";
}else{
$array= array("$exec");
while (list($x, $y, $z, $a) = $array){
echo " <tr>\n " .
" <td><a href=\"click.php?=$a\">Click Here to Open Offer</a></td>\n" .
" <td>$z</td>\n" .
" <td>$y</td>\n" .
" <td>$x</td>\n";
}}
?>