Yes it have much sense! ive thinked this together with your last post...
if i create a new usuariovo on php, i can retrieve it
but
do you know how can i automatize using for... to populate automatically?
very thankx cliff
function recolheDados ( $id, $tabela ) {
$sql = "SELECT * FROM $tabela WHERE id_" . $tabela . " = $id";
$teste = new UsuarioVO( );
$teste->nome="van";
return _query( $sql );
}
this code is wrong.. because its returning the query... as object
but im posting to show you..
because if i return $teste.. it cames as UsuarioVO
but do you know how to create a routine that parses query and puts automagically, a iterated loop.. that puts all variables inside the object to return?
very thanks