protected static function selectOne($model, $tableName, $id)
    {
        $connection = Connection::connect();

        $getAll = $connection->prepare('select * from '.$tableName.' where id='.$id);
        $getAll->execute();

        $row = $getAll->fetch(PDO::FETCH_ASSOC);
        array_push($model->resultRows, $row);
        
        return $model;
    }
protected static function selectOne($model, $tableName, $id)
    {
        $connection = Connection::connect();

        $getAll = $connection->prepare('select * from '.$tableName.' where id='.$id);
        $getAll->execute();

        $row = $getAll->fetch(PDO::FETCH_ASSOC);
        array_push($model->resultRows, $row);
        
        return $model;
    }
protected static function selectOne ( $ model , $ tableName , $ id ) { $ connection = Connection :: connect ( ) ; $ getAll = $ connection -> prepare ( 'select * from ' . $ tableName . ' where id=' . $ id ) ; $ getAll -> execute ( ) ; $ row = $ getAll -> fetch ( PDO :: FETCH_ASSOC ) ; array_push ( $ model -> resultRows , $ row ) ; return $ model ; }
Search database for one row

@param $model
@param $tableName
@param $id
@return mixed
Search database for one row