You had a hand written recordset that was still using MySQL in the middle of your page. It had the code:
<?php
mysql_select_db($database_connIO, $connIO);
$query_rsCT2 = "SELECT * FROM client_type WHERE clientTypeID = '" . $WADAcustomers->getColumnVal('client_type') ."'";
$rsCT2 = mysql_query($query_rsCT2, $connIO) or die(mysql_error());
$row_rsCT2 = mysql_fetch_assoc($rsCT2);
$rsCT->TotalRows2 = mysql_num_rows($rsCT2);
echo $row_rsCT2['client_type'];
?>
It had to be updated to mysqli like:
<?php
$rsCT2 = new WA_MySQLi_RS("rsCT2",$connIO_i,1);
$rsCT2->setQuery("SELECT * FROM client_type WHERE clientTypeID = ?");
$rsCT2->bindParam("s", "".($WADAcustomers->getColumnVal('client_type')) ."", "-1"); //parm
$rsCT2->execute();
echo $rsCT2->getColumnVal('client_type');
?>