?> </ul> </div><!--/.nav-collapse --> </div> </nav> <?php if (isset($_GET['id'])) { $activeClient = $_GET['id']; $activeClient = urldecode($activeClient); } else { redirect("index.php"); } $activeClient = $database->escapeString($activeClient); $qry = "SELECT * FROM `Combi` WHERE `clientName` = '" . $activeClient . "' LIMIT 1"; $theClient = Client::findByQuery($qry); // var_dump( $theClient ); if (!empty($theClient)) { // echo "Client Found... :)"; $theClientObject = array_shift($theClient); // $objectVars = array_shift( get_object_vars( $theClientObject ) ); ?> <div class="row"> <div class="col-md-6 col-md-offset-3"> <div class="panel panel-login"> <div class="panel-heading"> <div class="row"> <div class="col-xs-offset-4 col-xs-4 text-center"> <h3>Edit Client</h3> </div> </div>