PHP Mapping Recordset to VO


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. private function mapContact( $recordset )
  2. {
  3. require_once( "vo/ContactVO.php" );
  4.  
  5. $list = array();
  6.  
  7. while( $data = mysql_fetch_array( $recordset ) )
  8. {
  9. $contactVO = new ContactVO( $data );
  10.  
  11. array_push( $list, $contactVO );
  12. }
  13. return $contactVO;
  14. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.